how to capture video without showing the camera window or program - android

i want to capture in android programming without showing the camera
only want to have two button, by clicking first button, it start capturing and by clicking the second, capturing will be stop and save the file somewhere in phone.
also saw this link Video Recording and Image Capture on Android using Camera Intents
its first week that i started android programming, thanks for your helps

There are two ways to capture videos on Android.
The first way is to use an Intent (a message) to ask applications able to capture video to start and to capture the video for you.
The second way is to build your own video recorder.
The first option is not suitable for you, as you will not be able to control the display of the called application.
Concerning the second option, there is a great tutorial on the official website about how to develop a camera application. Here is the link Camera App tutorial. Basically you will want to look to the part called "Building a Camera App" and "Capturing video". As you will see through the tutorial they use a SurfaceView (which you put in your layout just as any other view) to display the camera content. You can just follow the tutorial and then set the visibility of the view to false. Or, if you're more confident, you can try to skip part using the surfaceview.
Hope i could help !

Related

Flutter screen recording

Hi Im trying to record a screen because I don't find a way to add an overlay to the camera video save.
I tried many plugin flutter_screen_recording, screen_capture_event, device_screen_recorder and screen_recorder but I didn't find a way to make them work properly. I chosen screen recording but if you have a solution to add the overlay in the camera video i take it too.
Thanks.
EDIT: For more informations the plugin flutter_screen_recording work fine on ios but not on android
There is Package for Screen Recording in flutter called flutter_screen_recording
You can try this

Android: How to keep recording while switch between back and front camera?

Video is limited in 1 minute.
What I already try, I restart record after switch camera, so there are several video files, in the end, I append them one by one using mp4parser.
But in the final video, I get a up down video in the front camera part. I have no idea what's go wrong!
I have another thought is to record what I preview like record screen, but I have no idea how to implement it as First time camera player , like remove not needed UI.
If there is any advice would be great help. Thank your guys anyway
You can use jprofiler for performance monitoring and recording. I am using the same. Its amazing.

Can we record screen video of android devices?

Is their any source code or sample project which allows to record video of the running screen of application.
I have to make an application which has ability to record video of the application screen in android devices.
I search about this, but haven't find anything.
I have developed it.
For that you have to make background service and programmatically capture screenshot on every second and after that combine all images and make video using FFMPEG.
I hope it will work for you.
Let me know if you need more help in same.

capture screenshot of playing video and mailing that screen shot

I am playing video, i need to capture video screen shots.
- after i need to mail are share it.
Please provide me examples are any links.
Thanks,
Chandu
If you don't want to do it programmatically, just use eclipse and go to DDMS, and use screen capture, may be this is useful for you : http://www.howtoforge.com/how-to-take-screenshots-of-your-android-smartphone
but if you want to do it programmatically, see this : Screen Capture in android

Video inside android app

I would like to add one video to the main screen of my application but I want to user to be able to do other things in the app meanwhile. Think about some video animation or flash movie for some website that you can watch the video and look on other things in the website.
lets say I have buttons and more things in the same screen and I want a small video to be playing there too in a loop.
is this possible?
I thought that Flash movie could be good for that, but its only for latest versions of android then I don't want to use it.
Thanks.
You can just use the VideoView.

Categories

Resources