Skip to content

Commit

Permalink
Fixed compatibility with Chrome, changes to sdp were still being made
Browse files Browse the repository at this point in the history
for firefox compat, they are not needed
  • Loading branch information
lodoyun committed Jan 26, 2015
1 parent 269b641 commit 1af80f5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,17 @@ Erizo.ChromeStableStack = function (spec) {
//sessionDescription.sdp = newOffer.replace(/a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:.*\r\n/g, "a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:eUMxlV2Ib6U8qeZot/wEKHw9iMzfKUYpOPJrNnu3\r\n");

sessionDescription.sdp = setMaxBW(sessionDescription.sdp);
sessionDescription.sdp = sessionDescription.sdp.replace(/a=rtpmap:100 VP8\/90000/g,"a=rtpmap:120 VP8/90000");
sessionDescription.sdp = sessionDescription.sdp.replace(/a=fmtp:96 apt=100/g,"a=fmtp:96 apt=120");
sessionDescription.sdp = sessionDescription.sdp.replace(/m=video 1 RTP\/SAVPF 100/g,"m=video 1 RTP/SAVPF 120");
sessionDescription.sdp = sessionDescription.sdp.replace(/a=rtcp-fb:100/g,"a=rtcp-fb:120");
L.Logger.debug("Changed", sessionDescription.sdp);

var newOffer = sessionDescription.sdp;

if (newOffer !== that.prevOffer) {

that.peerConnection.setLocalDescription(sessionDescription);
that.peerConnection.setLocalDescription(sessionDescription, function(){
console.log("Success");
}, function(){
console.log("Failed Setting local desc");
});

that.state = 'preparing-offer';
that.markActionNeeded();
Expand Down

0 comments on commit 1af80f5

Please sign in to comment.