diff options
author | Maxim Devaev <[email protected]> | 2024-09-11 00:48:47 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-09-11 00:48:47 +0300 |
commit | 0bb35806ffd06c9bbc5905c9776811b619e93234 (patch) | |
tree | 84c4739d92aca591f65725f83394cbe38b3c4cd9 /web/share/js | |
parent | bbbc908af19a515a35d55ce9936fdd9fb2b770e8 (diff) |
Janus: Fixed OPUS mono audio in Chrome
Diffstat (limited to 'web/share/js')
-rw-r--r-- | web/share/js/kvm/stream_janus.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/share/js/kvm/stream_janus.js b/web/share/js/kvm/stream_janus.js index d8218b81..0400267b 100644 --- a/web/share/js/kvm/stream_janus.js +++ b/web/share/js/kvm/stream_janus.js @@ -248,6 +248,13 @@ export function JanusStreamer(__setActive, __setInactive, __setInfo, __orient, _ // Janus 0.x "media": {"audioSend": false, "videoSend": false, "data": false}, + // Chrome is playing OPUS as mono without this hack + // - https://issues.webrtc.org/issues/41481053 - IT'S NOT FIXED! + // - https://github.com/ossrs/srs/pull/2683/files + "customizeSdp": function(jsep) { + jsep.sdp = jsep.sdp.replace("useinbandfec=1", "useinbandfec=1;stereo=1"); + }, + "success": function(jsep) { __logInfo("Got SDP:", jsep); __sendStart(jsep); |