change in focus protocol, use new proprietary variant
This commit is contained in:
parent
8c3b533bb7
commit
86b4355704
|
@ -156,8 +156,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
|||
var modify = $iq({to: toJid, type: 'set'})
|
||||
.c('jingle', {
|
||||
xmlns: 'urn:xmpp:jingle:1',
|
||||
//action: isAdd ? 'source-add' : 'source-remove', -- not yet
|
||||
action: isAdd ? 'addsource' : 'removesource',
|
||||
action: isAdd ? 'source-add' : 'source-remove', -- not yet
|
||||
initiator: initiator,
|
||||
sid: sid
|
||||
}
|
||||
|
@ -170,7 +169,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
|||
var channel = sdpMediaSsrcs[channelNum];
|
||||
modify.c('content', {name: channel.mediaType});
|
||||
|
||||
// modify.c('description', {xmlns:'urn:xmpp:jingle:apps:rtp:1', media: channel.mediaType}); -- not yet
|
||||
modify.c('description', {xmlns:'urn:xmpp:jingle:apps:rtp:1', media: channel.mediaType});
|
||||
// FIXME: not completly sure this operates on blocks and / or handles different ssrcs correctly
|
||||
// generate sources from lines
|
||||
Object.keys(channel.ssrcs).forEach(function(ssrcNum) {
|
||||
|
@ -192,7 +191,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
|||
});
|
||||
modify.up(); // end of source
|
||||
});
|
||||
// modify.up(); // end of description -- not yet
|
||||
modify.up(); // end of description
|
||||
modify.up(); // end of content
|
||||
});
|
||||
if (modified) {
|
||||
|
|
Loading…
Reference in New Issue