有没有办法在安卓使用MediaRecorder录制系统声音?

huangapple go评论74阅读模式
英文:

Is there a way to record system sound with MediaRecorder in android?

问题

我有一个媒体录制器,我想要进行屏幕捕捉,但不需要麦克风音频,只需系统声音。
是否有方法可以禁用我的麦克风并捕捉系统声音?

mediaRecorder.setAudioSource(MediaRecorder.AudioSource.NEED_SYSTEM_AUDIO_RESOURCE_HERE);
英文:

I have a media recorder, and i want to take screen capture without mic audio, only with the system sound.
Is there some solution to disable my mic and to capture system sounds?

mediaRecorder.setAudioSource(MediaRecorder.AudioSource.NEED_SYSTEM_AUDIO_RESOURCE_HERE);

答案1

得分: 1

很遗憾,根据说明,设计上 MediaRecorder 仅接受预定义的音频源作为音频源。

英文:

Unfortunately not. By Design mediarecorder took as audiosource only the predefined ones as per instruction.

huangapple
  • 本文由 发表于 2020年9月15日 03:52:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/63891013.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定