|
@@ -156,7 +156,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
156
|
156
|
var modify = $iq({to: toJid, type: 'set'})
|
157
|
157
|
.c('jingle', {
|
158
|
158
|
xmlns: 'urn:xmpp:jingle:1',
|
159
|
|
- action: isAdd ? 'addsource' : 'removesource',
|
|
159
|
+ action: isAdd ? 'source-add' : 'source-remove',
|
160
|
160
|
initiator: initiator,
|
161
|
161
|
sid: sid
|
162
|
162
|
}
|
|
@@ -168,6 +168,8 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
168
|
168
|
modified = true;
|
169
|
169
|
var channel = sdpMediaSsrcs[channelNum];
|
170
|
170
|
modify.c('content', {name: channel.mediaType});
|
|
171
|
+
|
|
172
|
+ modify.c('description', {xmlns:'urn:xmpp:jingle:apps:rtp:1', media: channel.mediaType});
|
171
|
173
|
// FIXME: not completly sure this operates on blocks and / or handles different ssrcs correctly
|
172
|
174
|
// generate sources from lines
|
173
|
175
|
Object.keys(channel.ssrcs).forEach(function(ssrcNum) {
|
|
@@ -189,6 +191,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
189
|
191
|
});
|
190
|
192
|
modify.up(); // end of source
|
191
|
193
|
});
|
|
194
|
+ modify.up(); // end of description
|
192
|
195
|
modify.up(); // end of content
|
193
|
196
|
});
|
194
|
197
|
if (modified) {
|
|
@@ -220,4 +223,4 @@ SessionBase.prototype.toggleVideoMute = function (callback) {
|
220
|
223
|
|
221
|
224
|
this.peerconnection.hardMuteVideo(!ismuted);
|
222
|
225
|
this.modifySources(callback(!ismuted));
|
223
|
|
-};
|
|
226
|
+};
|