I'm using camera, but it isn't possible to capture video with locked screen. Maybe someone know, how to implement this?
Related
Will it be possible to prevent other camera app from using the camera while my app is using it, at least until the duration of my video recording is completed?
If yes, how can I achieve it?
If no, is there any event I can listen to to know if other camera app has accessed the camera?
What's happening is that the camera instance is being taken from my app and no video is being fed to the recorded file, only audio.
I am working on an app in which I want to implement video recording feature in which user can switch the camera from front to rear and vice versa (like snap chat) while recording.
I have implemented the function of switching camera, the video is getting recorded as well, but the problem is my video is getting blank/stuck from the point of switching.
I have tried with this solution but it is not working in my case.
Is there any other way to achieve this?
Thank you.
I have managed to get Video capture to work for a custom camera experience (i.e. using MediaRecorder, Camera, SurfaceView, etc.). But if I am recording a video and change the orientation of the device, video capture stops. Is there way to continue the capture after the orientation change? If fact I want the capture to continue no matter how many times the orientation changes. I imagine it might all have to do with savedInstanceState and saving the file that I pass to mRecorder.setOutputFile(my file). If that's correct, what else am I missing? Or is there a more standard way to handle orientation change during video recording? Thanks for any guidance.
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 !
Is it possible to record video with overlay view? While recording the video I have displayed one small image on the overlay view. What I want to do is I want those overlay image along with the video recorded. So when I will open that recorded video, I will be able to see that overlapped image that recorded with video also.
Friends, I need this solution ASAP. Please suggest proper solution :)
Unfortunately, there is no way in the current Android API to get between the camera input and the encoder. Any solution would either involve capturing frames from the video source, overlaying the additional image, and then including an encoder for the captured frames. Even in native code with NEON optimizations on a fast system, this is going to be a slow process. Alternatively, the whole stream could be post-processed in a similar fashion, but this would also require a decoder.
For future reference: This is possible using the CameraView library, at least in "snapshot video" mode.