note remotestream in colibrisession as well

This commit is contained in:
Philipp Hancke 2013-12-30 10:28:48 +01:00 committed by Yana Stamcheva
parent 3567898162
commit 4a423f3826
1 changed files with 4 additions and 1 deletions

View File

@ -98,6 +98,9 @@ ColibriFocus.prototype.makeConference = function (peers) {
Object.keys(ob.remotessrc).forEach(function (jid) {
if (ob.remotessrc[jid].join('\r\n').indexOf('mslabel:' + event.stream.id) != -1) {
event.peerjid = jid;
if (ob.connection.jingle.jid2session[jid]) {
ob.connection.jingle.jid2session[jid].remotestream = event.stream;
}
}
});
$(document).trigger('remotestreamadded.jingle', [event, ob.sid]);
@ -376,7 +379,7 @@ ColibriFocus.prototype.initiate = function (peer, isInitiator) {
sess.localStream = this.connection.jingle.localStream;
sess.media_constraints = this.connection.jingle.media_constraints;
sess.pc_constraints = this.connection.jingle.pc_constraints;
sess.ice_config = this.connection.ice_config;
sess.ice_config = this.connection.jingle.ice_config;
this.connection.jingle.sessions[sess.sid] = sess;
this.connection.jingle.jid2session[sess.peerjid] = sess;