From 64ac866df0730167307ee385e8bbda371b89b3f8 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Thu, 19 Apr 2018 20:47:02 +0200 Subject: [PATCH] remove legacy offerOptions.mandatory also the webrtc bug indicated seems not to exist anymore --- index.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/index.js b/index.js index 772e698..ceea0ea 100644 --- a/index.js +++ b/index.js @@ -118,26 +118,6 @@ MediaSession.prototype = extend(MediaSession.prototype, { return self.end('failed-application', true); } - // a workaround for missing a=sendonly - // https://code.google.com/p/webrtc/issues/detail?id=1553 - if (offerOptions && offerOptions.mandatory) { - offer.jingle.contents.forEach(function (content) { - var mediaType = content.application.media; - - if (!content.description || content.application.applicationType !== 'rtp') { - return; - } - - if (!offerOptions.mandatory.OfferToReceiveAudio && mediaType === 'audio') { - content.senders = 'initiator'; - } - - if (!offerOptions.mandatory.OfferToReceiveVideo && mediaType === 'video') { - content.senders = 'initiator'; - } - }); - } - offer.jingle.contents.forEach(filterUnusedLabels); self.send('session-initiate', offer.jingle);