Android Media Recorder causes device to lock after long periods of recording

柔情痞子 提交于 2019-12-13 00:28:29

问题


I'm currently using the Android Media Recorder to capture video from the camera prior to streaming it.

I'm finding that if I continuously record content for long periods of time 45 minutes + the device eventually locks up and the following error is written to the logs continuously

03-12 12:09:26.430: E/Camera2-StreamingProcessor(128): onFrameAvailable: Camera 0: No free recording buffers, dropping frame

Eventually the application will display the 'stopped responding dialog' and I can kill the app.

It appears that the length of time that this issue takes to occur is dependent on the resolution and quality I record at and the length of time and number of recording sessions I have done previously. Rebooting the device does improve the situation, I once got 1 hour and 10 minutes after a reboot at 720p.

Are there known limitations on Android when it comes to recording for long period of times?

I believe that the Camera application on the device does impose recording limits is this correct?

Does anyone know of any solutions for the error I am seeing above?

来源:https://stackoverflow.com/questions/15370375/android-media-recorder-causes-device-to-lock-after-long-periods-of-recording

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