MediaRecorder IOException: prepare failed

后端 未结 6 416
北恋
北恋 2021-01-18 08:11

I want to use MediaRecorder to record voice, my code is:

 public void record(View v) {
       Log.d(TAG, \"record\");

    this.mediaRecorder.setAudioChannel         


        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-18 08:54

    I deleted

    this.mediaRecorder.setAudioEncodingBitRate(16);

    at method 2 and now it's working.

提交回复
热议问题