Record Video in Background - android

I have an application in which I want to record the video in background. The main steps of the process are:
When the app starts, a play icon is displayed.
On clicking the icon, video recording should start. User should NOT have to press the red record start button of the native camera application. The app needs to display that recording. After 10 seconds, the recording should stop automatically and save the video directly.
If the user switches between the application, the video recording should continue recording even in background.
I would be glad if at least the step 2 of the process is solved. I did look into backgroundvideo plugin here. But it did not help. Also, I tried with media-capture but I have to press the record and stop button.

Related

Android Screen recording event into my Android application

I want screen recording event into my Android application, for example some third party application start to capture or record screen at that time my Android application detect that event and show one warning dialog to user that detect screen recording.
if any one know about this please help me about this. I am searching about this but all tell about "FLAG_SECURE". I want Event of screen recording not restrict screen recording.

how to play sound with change image repeately in android studio

I want to write an app in Android Studio for my son that when he press a button, an image in image view show and play a sound then after a few second ,automatically the next image with next sound played, and so on, This process continues when another button is pressed to display another images and sounds.
How do I do this loop replay audio and switch images?
Thank you for your help

How to use background camera and foreground camera simultaneously?

My new application requirement is client wants to create a spy camera which record the video in background. Now whenever the phone is lock and user is not present so in the absens of user someone try to use the phone it will start video recording in background recording. I have done all this thing and it works like a charm no issue with this.
Now the problem is when the service start video recording in background and at that time I open my default camera app and it won't allow me to use the camera application that is but obvious because my service using that camera in background.
So my question is that can we use both background camera and foreground camera simultaneously? AFAIK it is not possible to use background camera and foreground camera.
As I searched on stack overflow someone said that Samsung s4 default application do that you can capture front and back and its I have s4 and its default application do that thing but when I installed and use my app it raise the same issue.
Right now I am planning to stop video recording when my default camera application open. But is their any other way apart from stop recording?

Can we pause the camera while recording

In my application I have timer driven video recording functionality. When the camera is in recording mode and if I click on a button on anywhere on the screen the recording should pause. I should be able to continue recording on clicking again.
But there is no pause action for recording video in many of the android devices.
Is there any other ways of doing it? I found this link but it doesn't give me any hope.
can anybody help me?
you can't do that as no inbuilt function is there what you can do it is that whenever you want to pause your app, stop it and start another part, then combine all parts of it...
Edit: If you are using the MediaRecorder, you can use MediaRecorder.Pause() + .Resume() from Android 7.0 (Nougat, API 24) or higher

Capture video of running android application and then play it

I have developed one application in android and now I wish to add one more functionality in it. I want to capture the video of my application, means there will be one button and when user clicks on that button it starts recording each and everything which user do in the application. Let say user has press 2 buttons and play some sound, animations, etc. This all should be recorded and when user stop recording it gives options to play the video. I got this idea from the Talking Tom app available in android market.
Here is the link of that app.
Talking tom
See the screens, on the top of it the button of movie is there, which is used for recording whatever the user will do after pressing that button will be recorded and then play it, so it will play all the recorded things.
I want to do the same thing, if anyone is having any idea please kindly let me know.
Thnaks
Beside recording a screencapture, you may can only record the users inputs in an file?
So every method the user calls will be recorded with a Timestamp in that file (or something like that). That can be done by the method itself, so all you have to do for playback is, calling your methods in the same order the user did. Games like StarCraft are recording userinputs and repeat them in playback mode. But your App has to produce excatly the same results with the same inputs, any variations in results will crash your playback.

Categories

Resources