Removes old hack

This commit is contained in:
paweldomas 2015-07-14 16:18:50 +02:00
parent 17f245df5e
commit 2b103288c2
1 changed files with 0 additions and 9 deletions

View File

@ -978,15 +978,6 @@ JingleSession.prototype._modifySources = function (successCallback, queueCallbac
});
this.removessrc = [];
// FIXME:
// this was a hack for the situation when only one peer exists
// in the conference.
// check if still required and remove
if (sdp.media[0])
sdp.media[0] = sdp.media[0].replace('a=recvonly', 'a=sendrecv');
if (sdp.media[1])
sdp.media[1] = sdp.media[1].replace('a=recvonly', 'a=sendrecv');
sdp.raw = sdp.session + sdp.media.join('');
this.peerconnection.setRemoteDescription(new RTCSessionDescription({type: 'offer', sdp: sdp.raw}),
function() {