문제

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