Mediarecorder start failed -19

后端 未结 5 1212
醉梦人生
醉梦人生 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:23

    I found a subtle hint in documentation for the MediaRecorder.start() method that suggest if it fails to lock() the Camera before attempting to re-record. This worked for me. Implies a Camera state bug was fixed post API level 13 - calling Camera.lock() is the known workaround.

提交回复
热议问题