gpt4 book ai didi

javascript - 使用麦克风时,Android WebRTC 上的 Chrome 音量 slider 不起作用

转载 作者:行者123 更新时间:2023-11-30 00:23:45 24 4
gpt4 key购买 nike

当我在 Android 版 chrome 上与输出和输入(视频和麦克风)建立 WebRTC 连接时,当使用硬件键控制音量 slider 时,我会看到 STREAM_VOICE_CALL 流的音量,这不是正确的流WebRTC。这使得用户无法有效地控制音量。

我猜这是因为当我打开麦克风(使用 getUserMedia)时,系统认为我正在通话中。

关于如何解决这个问题的任何想法?这是预期的行为还是 Chrome 错误?

谢谢

最佳答案

现在是这样 build 的吗?至少 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 )

关于javascript - 使用麦克风时,Android WebRTC 上的 Chrome 音量 slider 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32215497/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com