From 4a115ee215f039a1ac18499e246c9355af4dc466 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Wed, 5 Nov 2014 18:56:31 -0800 Subject: [PATCH] remove old ssrc code as well --- libs/strophe/strophe.jingle.sdp.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libs/strophe/strophe.jingle.sdp.js b/libs/strophe/strophe.jingle.sdp.js index 085a8656df..2466f7deb5 100644 --- a/libs/strophe/strophe.jingle.sdp.js +++ b/libs/strophe/strophe.jingle.sdp.js @@ -285,12 +285,6 @@ SDP.prototype.toJingle = function (elem, thecreator) { }); elem.up(); - // old proprietary mapping, to be removed at some point - tmp = SDPUtil.parse_ssrc(this.media[i]); - tmp.xmlns = 'http://estos.de/ns/ssrc'; - tmp.ssrc = ssrc; - elem.c('ssrc', tmp).up(); // ssrc is part of description - // XEP-0339 handle ssrc-group attributes var ssrc_group_lines = SDPUtil.find_lines(this.media[i], 'a=ssrc-group:'); ssrc_group_lines.forEach(function(line) { @@ -644,15 +638,5 @@ SDP.prototype.jingle2media = function (content) { }); }); - if (tmp.length === 0) { - // fallback to proprietary mapping of a=ssrc lines - tmp = content.find('description>ssrc[xmlns="http://estos.de/ns/ssrc"]'); - if (tmp.length) { - media += 'a=ssrc:' + ssrc + ' cname:' + tmp.attr('cname') + '\r\n'; - media += 'a=ssrc:' + ssrc + ' msid:' + tmp.attr('msid') + '\r\n'; - media += 'a=ssrc:' + ssrc + ' mslabel:' + tmp.attr('mslabel') + '\r\n'; - media += 'a=ssrc:' + ssrc + ' label:' + tmp.attr('label') + '\r\n'; - } - } return media; };