MediaRecorder IOException: prepare failed

后端 未结 6 480
北恋
北恋 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 09:04

    For devices targeting version >= 10+ , you need to use MediaStore api, in my case file could not be found because the file is out of my app's scoped storage.

提交回复
热议问题