summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/stream_janus.js7
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);