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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top