|
|
@@ -156,7 +156,8 @@ 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 ? 'source-add' : 'source-remove',
|
|
|
159
|
+ //action: isAdd ? 'source-add' : 'source-remove', -- not yet
|
|
|
160
|
+ action: isAdd ? 'addsource' : 'removesource',
|
|
160
|
161
|
initiator: initiator,
|
|
161
|
162
|
sid: sid
|
|
162
|
163
|
}
|
|
|
@@ -169,7 +170,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
|
169
|
170
|
var channel = sdpMediaSsrcs[channelNum];
|
|
170
|
171
|
modify.c('content', {name: channel.mediaType});
|
|
171
|
172
|
|
|
172
|
|
- modify.c('description', {xmlns:'urn:xmpp:jingle:apps:rtp:1', media: channel.mediaType});
|
|
|
173
|
+ // modify.c('description', {xmlns:'urn:xmpp:jingle:apps:rtp:1', media: channel.mediaType}); -- not yet
|
|
173
|
174
|
// FIXME: not completly sure this operates on blocks and / or handles different ssrcs correctly
|
|
174
|
175
|
// generate sources from lines
|
|
175
|
176
|
Object.keys(channel.ssrcs).forEach(function(ssrcNum) {
|
|
|
@@ -191,7 +192,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
|
191
|
192
|
});
|
|
192
|
193
|
modify.up(); // end of source
|
|
193
|
194
|
});
|
|
194
|
|
- modify.up(); // end of description
|
|
|
195
|
+ // modify.up(); // end of description -- not yet
|
|
195
|
196
|
modify.up(); // end of content
|
|
196
|
197
|
});
|
|
197
|
198
|
if (modified) {
|