How to get android video capture to survive screen rotation

Deadly 提交于 2019-12-10 11:13:27

问题


I have managed to get Video capture to work for a custom camera experience (i.e. using MediaRecorder, Camera, SurfaceView, etc.). But if I am recording a video and change the orientation of the device, video capture stops. Is there way to continue the capture after the orientation change? If fact I want the capture to continue no matter how many times the orientation changes. I imagine it might all have to do with savedInstanceState and saving the file that I pass to mRecorder.setOutputFile(my file). If that's correct, what else am I missing? Or is there a more standard way to handle orientation change during video recording? Thanks for any guidance.

来源:https://stackoverflow.com/questions/32659380/how-to-get-android-video-capture-to-survive-screen-rotation

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