MediaRecorder start failed: -38

前端 未结 2 532
遥遥无期
遥遥无期 2020-11-27 06:48

i searched to check if this question is no dup , i see some has no answer and others did not help.

this is my code :

private void startRecording()
{         


        
2条回答
  •  野性不改
    2020-11-27 07:25

    In my case that error (MediaRecorder: start failed: -38) was appearing after switching to second camera when I forgot to release MediaRecorder during closing (first) camera:

    mediaRecorder?.release()
    mediaRecorder = null
    

提交回复
热议问题