Browse Source

Filter rtx support from remote SDP for Chrone <= 38

Chrome 52 started to send rtx support with their SDP which is not supported on Chrome 38 which is the lowest supported version. This change removes rtx from the remote SDP before setting it as remote description when run on Chrome <= 38.
release-0.28
Simon Eisenmann 9 years ago
parent
commit
fa7385e1df
  1. 5
      static/js/mediastream/utils.js

5
static/js/mediastream/utils.js

@ -447,6 +447,11 @@ define([], function() { @@ -447,6 +447,11 @@ define([], function() {
// This change breaks very old versions of WebRTC. So we change it back locally
// for Chrome <= 38 which makes things work fine again.
sdp = sdp.replace(/UDP\/TLS\/RTP\/SAVPF/g, "RTP/SAVPF")
// Remove all rtx support from remote sdp, which is geneated by
// Chrome 48+ but does not work with <= 38.
sdp = sdp.replace(/a=rtpmap:\d+ rtx\/\d+\r\n/i, "");
sdp = sdp.replace(/a=fmtp:\d+ apt=\d+\r\n/i, "");
}
return sdp;
}

Loading…
Cancel
Save