Chrome on Android WebRTC 音量滑块在使用麦克风时不起作用
Chrome on Android WebRTC volume slider doesnt work when using microphone
当我在 chrome 上为 Android 建立带有输出和输入(视频和麦克风)的 WebRTC 连接时,当使用硬件键控制音量滑块时,我会看到STREAM_VOICE_CALL 流,这不是 WebRTC 的正确流。这使得用户无法有效地控制音量。
我猜这是因为当我打开麦克风(使用 getUserMedia)时,系统认为我正在通话中。
关于如何解决这个问题有什么想法吗?这是预期的行为还是 chrome 错误?
谢谢
现在是这样建造的吗?至少铬问题 243506 告诉以下内容:
Enable audio volume control on Android.
This is done by setting stream to VOICE which is the only stream type hooking up volume control automatically.
It's required to use matching audio mode and stream type. Otherwise, the volume control doesn't work. That means we have to use same mode
for both WebAudio and WebRTC. This leads to the change in audio_manager_android.cc which sets audio to communication mode so that OpenSL
stream can use VOICE stream type to adjust volume.
加粗是我加的
(https://code.google.com/p/chromium/issues/detail?id=243506)
看起来它已经在最新的 Chrome 版本中修复了。
当我在 chrome 上为 Android 建立带有输出和输入(视频和麦克风)的 WebRTC 连接时,当使用硬件键控制音量滑块时,我会看到STREAM_VOICE_CALL 流,这不是 WebRTC 的正确流。这使得用户无法有效地控制音量。
我猜这是因为当我打开麦克风(使用 getUserMedia)时,系统认为我正在通话中。
关于如何解决这个问题有什么想法吗?这是预期的行为还是 chrome 错误?
谢谢
现在是这样建造的吗?至少铬问题 243506 告诉以下内容:
Enable audio volume control on Android.
This is done by setting stream to VOICE which is the only stream type hooking up volume control automatically. It's required to use matching audio mode and stream type. Otherwise, the volume control doesn't work. That means we have to use same mode for both WebAudio and WebRTC. This leads to the change in audio_manager_android.cc which sets audio to communication mode so that OpenSL stream can use VOICE stream type to adjust volume.
加粗是我加的
(https://code.google.com/p/chromium/issues/detail?id=243506)
看起来它已经在最新的 Chrome 版本中修复了。