Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default, Chrome browser plays WebRTC stream with stereo sound in Opus codec as mono due to engine bug. An additiona client setup is required to workaround this Chrome behaviour depending on client implementation

Using Web SDK

Since Web SDK build 0.5.28.2753.151 the following playback constraint option is available

...

If only Websocket API is used in project, it is necessary to disable echo cancellation

Code Block
languagejs
themeRDark
session.createStream({
    name: streamName,
    display: remoteVideo,
    constraints: {
        audio: {
            echoCancellation: false,
            googEchoCancellation: false
        },
        ...
    }
    ...
}).play();

Also change the Opus codec parameters should be changed in offer SDP right after its creation

...