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'})
|
var modify = $iq({to: toJid, type: 'set'})
|
||||||
.c('jingle', {
|
.c('jingle', {
|
||||||
xmlns: 'urn:xmpp:jingle:1',
|
xmlns: 'urn:xmpp:jingle:1',
|
||||||
//action: isAdd ? 'source-add' : 'source-remove', -- not yet
|
action: isAdd ? 'source-add' : 'source-remove', -- not yet
|
||||||
action: isAdd ? 'addsource' : 'removesource',
|
|
||||||
initiator: initiator,
|
initiator: initiator,
|
||||||
sid: sid
|
sid: sid
|
||||||
}
|
}
|
||||||
|
@ -170,7 +169,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
||||||
var channel = sdpMediaSsrcs[channelNum];
|
var channel = sdpMediaSsrcs[channelNum];
|
||||||
modify.c('content', {name: channel.mediaType});
|
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
|
// FIXME: not completly sure this operates on blocks and / or handles different ssrcs correctly
|
||||||
// generate sources from lines
|
// generate sources from lines
|
||||||
Object.keys(channel.ssrcs).forEach(function(ssrcNum) {
|
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 source
|
||||||
});
|
});
|
||||||
// modify.up(); // end of description -- not yet
|
modify.up(); // end of description
|
||||||
modify.up(); // end of content
|
modify.up(); // end of content
|
||||||
});
|
});
|
||||||
if (modified) {
|
if (modified) {
|
||||||
|
|
Loading…
Reference in New Issue