yatakabs / WhepPlayer

MIT License
1 stars 0 forks source link

Audio Downmixing to Mono in Chromium-based Browsers #1

Closed yatakabs closed 4 months ago

yatakabs commented 4 months ago

Summary / Bug Description

When WHEP Player is hosted in a Chromium-based browser, the player always downmixes the audio to mono regardless of the audio configuration, browser settings, or the stream source. This issue is not present in other browsers like Firefox or Safari.

Environment

  1. Chromium-based browsers

Reproduction Instructions

Precondition

Steps

  1. Send a video stream with stereo audio with WHIP protocol. (e.g., with OBS Studio 30 or later)
  2. Open the WHEP Player in a Chromium-based browser (e.g., Chrome, Edge, OBS Studio Browser Source)

Expected Result

The audio should be played in stereo.

Actual Result

The audio is downmixed to mono.

It would be easier to recognize the issue if adjusting stereo balance in the sender application to 100% left or right.

Additional Info

Affected Browsers (Confirmed)

Browser Version
Google Chrome 123.0.6312.106 (64-bit)
Microsoft Edge 123.0.2420.81 (64-bit)
OBS Studio (Browser Source) 30.0.2 (64-bit)
OBS Studio (Browser Source) 30.1.2 (64-bit)

Non-Affected Browsers (Confirmed)

Browser Version
Mozilla Firefox 124.0.2 (64-bit)

Tested Environment for Reproduction

Environment / Role Software Version
Operating System Windows 10 22H2
Streaming Software OBS Studio 30.0.2
Streaming Software OBS Studio 30.1.2
Browser (Receiver) Google Chrome 123.0.6312.106 (64-bit)
Browser (Receiver) Microsoft Edge 123.0.2420.81 (64-bit)
Server srs-stack v5.11.14
Server go2rtc 1.8.5 windows/amd64

Non-Causal Factors

yatakabs commented 4 months ago

日本語版(機械翻訳)

概要

WHEP PlayerがChromiumベースのブラウザでホストされている場合、プレイヤーは常にオーディオをモノラルにダウンミックスします。これは、オーディオ設定、ブラウザの設定、またはストリームのソースに関わらず発生します。 この問題は、FirefoxやSafariなどの他のブラウザでは発生しません。

環境

  1. Chromiumベースのブラウザ

再現手順

前提条件

手順

  1. WHIPプロトコルを使用して、ステレオオーディオを含むビデオストリームを送信します。(例:OBS Studio 30以降を使用)
  2. Chromiumベースのブラウザ(例:Chrome、Edge、OBS Studio Browser Source)でWHEPプレイヤーを開きます。

期待される結果

オーディオがステレオで再生されるべきです。

実際の結果

オーディオがモノラルにダウンミックスされます。

送信アプリケーションでステレオバランスを左または右に100%調整することで、問題をより容易に認識できます。

追加情報

影響を受けるブラウザ(確認済み)

ブラウザ バージョン
Google Chrome 123.0.6312.106 (64-bit)
Microsoft Edge 123.0.2420.81 (64-bit)
OBS Studio (Browser Source) 30.0.2 (64-bit)
OBS Studio (Browser Source) 30.1.2 (64-bit)

影響を受けないブラウザ(確認済み)

ブラウザ バージョン
Mozilla Firefox 124.0.2 (64-bit)

再現に使用したテスト環境

環境 / 役割 ソフトウェア バージョン
オペレーティングシステム Windows 10 22H2
ストリーミングソフトウェア OBS Studio 30.0.2
ストリーミングソフトウェア OBS Studio 30.1.2
ブラウザ(受信者) Google Chrome 123.0.6312.106 (64-bit)
ブラウザ(受信者) Microsoft Edge 123.0.2420.81 (64-bit)
サーバー srs-stack v5.11.14
サーバー go2rtc 1.8.5 windows/amd64

非原因要素