MediaRecorder.stop() hanging with Android 4.0 (ICS)

后端 未结 9 1215
夕颜
夕颜 2021-02-04 01:08

When calling stop() within my Video Capture activity, on occasion, the software will hang and will not come back to life. Only triggering an ANR by hitting \"Back\

9条回答
  •  遇见更好的自我
    2021-02-04 02:07

    I accidentally rejected an answer during review that was given using an 'edit' of the question:

    user2171513 answered:

    I was facing the same issue and the solution that I found was to add mCamera.lock(); right before mCamera.unlock(); before camera is set in MediaRecorder..

提交回复
热议问题