I've tried video recording in the background.
But had failed.
Under normal circumstances, the recording works properly.
However, if HOME key down-> Home screen or Other Activity is running,
recording terminates.
In such a situation, I want to record continuously.
I want to record whole process!
What should I do?
thanks.
-Michael
You cannot video record in the background as far as I know. This is partially for privacy reasons.
Related
I am trying to disable screen record and screenshot in my flutter app and I already did using flutter_windowmanager package.
my problem is with screen recording, the sound of the video inside th app is still running and recorded by screen recording !
any suggestions for also preventing sound record ?
No. If your app is playing loud enough the microphone can hear it, it can be recorded. There's no way to prevent that- algorithmically canceling out sound from one source in an audio recording like that would be difficult, if not impossible. Nor would it really buy you all that much- they could always just hold an external mic up to the phone (they can also just capture your app with a second camera, which makes removing video recording also of limited use, if done to prevent a user from recording).
The one thing you could do is claim the mic yourself and not give it up. But that would be annoying to anyone actually using your app. And wouldn't rpevent capture with an external device of course.
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.
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.
I'm looking to make an Android app that can process music being played by another app. More specifically I want to analyze the raw audio. I've done some research and looked around, but I'm beginning to think this isn't possible, and maybe for good reason.
Does anyone have any ideas on how I might be able to achieve this capability?
as your requirement is to analyse all aps audio and want to process raw audio too.only one possibility is there which is to start recorder in background service and analyse audio all the time like many of the call recorder app on play store is doing to record a call.
it does have some drawbacks too
background noise
you will not able to know when music starts and when stops.
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