Can we pause the camera while recording

假如想象 提交于 2019-12-10 11:29:14

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/14850909/can-we-pause-the-camera-while-recording

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!