Mediarecorder start failed -19

后端 未结 5 1213
醉梦人生
醉梦人生 2020-12-18 10:37

I am getting this error when running start() for mediarecorder.

06-28 18:46:22.570: E/MediaRecorder(9540): start failed: -19
06-28 18:46:22.570: W/System.err         


        
5条回答
  •  情深已故
    2020-12-18 11:08

    The problem here is about the camera. Just use camera.unlock() to allow the media process to access the camera.

    This must be done before calling MediaRecorder.setCamera(Camera). This cannot be called after recording starts.

    Read more here.

提交回复
热议问题