|
@@ -132,9 +132,8 @@ ColibriFocus.prototype._makeConference = function () {
|
132
|
132
|
elem.c('conference', {xmlns: 'http://jitsi.org/protocol/colibri'});
|
133
|
133
|
|
134
|
134
|
var localSDP = new SDP(this.peerconnection.localDescription.sdp);
|
135
|
|
- var contents = SDPUtil.find_lines(localSDP.raw, 'a=mid:').map(SDPUtil.parse_mid);
|
136
|
135
|
localSDP.media.forEach(function (media, channel) {
|
137
|
|
- var name = SDPUtil.parse_mid(SDPUtil.find_line(media, 'a=mid:'));
|
|
136
|
+ var name = SDPUtil.parse_mline(media.split('\r\n')[0]).media;
|
138
|
137
|
elem.c('content', {name: name});
|
139
|
138
|
elem.c('channel', {initiator: 'false', expire: '15'});
|
140
|
139
|
|
|
@@ -401,8 +400,8 @@ ColibriFocus.prototype.addNewParticipant = function (peer) {
|
401
|
400
|
var elem = $iq({to: this.bridgejid, type: 'get'});
|
402
|
401
|
elem.c('conference', {xmlns: 'http://jitsi.org/protocol/colibri', id: this.confid});
|
403
|
402
|
var localSDP = new SDP(this.peerconnection.localDescription.sdp);
|
404
|
|
- var contents = SDPUtil.find_lines(localSDP.raw, 'a=mid:').map(SDPUtil.parse_mid);
|
405
|
|
- contents.forEach(function (name) {
|
|
403
|
+ localSDP.media.forEach(function (media, channel) {
|
|
404
|
+ var name = SDPUtil.parse_mline(media.split('\r\n')[0]).media;
|
406
|
405
|
elem.c('content', {name: name});
|
407
|
406
|
elem.c('channel', {initiator: 'true', expire:'15'});
|
408
|
407
|
elem.up(); // end of channel
|