Android MediaRecorder - “start failed: -19”

后端 未结 5 1371
广开言路
广开言路 2020-11-27 21:42

I\'m trying to create a video recorder on Android, and I\'ve prepared my code which is supposed to be working - but I constantly get an error message start failed: -19

5条回答
  •  伪装坚强ぢ
    2020-11-27 22:38

    Just found out the bug, in this line:

    mediaRecorder.setVideoSize(sView.getWidth(), sView.getHeight());
    

    after commenting out this line, the code runs perfectly!

提交回复
热议问题