File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -439,6 +439,15 @@ define([], function() {
439439 return sdp ;
440440 } ,
441441 fixRemote : function ( sdp ) {
442+ if ( window . webrtcDetectedBrowser === "chrome" && window . webrtcDetectedVersion <= 38 ) {
443+ // Chrome 46 started to send m lines as UDP/TLS/RTP/SAVPF
444+ // https://bugs.chromium.org/p/webrtc/issues/detail?id=2796
445+ // https://groups.google.com/forum/#!searchin/discuss-webrtc/psa$20savpf/discuss-webrtc/ZOjSMolpP40/gF5_1Tk8xRAJ
446+ // https://groups.google.com/forum/#!topic/mozilla.dev.media/vNCjLFgc97c
447+ // This change breaks very old versions of WebRTC. So we change it back locally
448+ // for Chrome <= 38 which makes things work fine again.
449+ sdp = sdp . replace ( / U D P \/ T L S \/ R T P \/ S A V P F / g, "RTP/SAVPF" )
450+ }
442451 return sdp ;
443452 }
444453 }
You can’t perform that action at this time.
0 commit comments