MediaRecorder no record audio

  • 内容
  • 评论
  • 相关

MediaRecorder进行录屏或摄像是怎么关闭声音?那是关闭Mic?不是的,这样根本不起作用。其实,最简单的方法就是不进行设置声音相关参数,就OK了。

pMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
pMediaRecorder.setAudioSamplingRate(44100);
pMediaRecorder.setAudioEncodingBitRate(96000);
pMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
pMediaRecorder.setAudioChannels(1);

这些都不进行设置就行了。

评论

2条评论
  1. Gravatar 头像

    Jane

    We have seen a number of sleep authorities know this as a new "negative slumber oruioazatinn.&qgot; My partner and i undoubtedly disagree, and thus would likely my child.

发表评论