Bladeren bron

note remotestream in colibrisession as well

j8
Philipp Hancke 11 jaren geleden
bovenliggende
commit
4a423f3826
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4
    1
      libs/colibri.js

+ 4
- 1
libs/colibri.js Bestand weergeven

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

Laden…
Annuleren
Opslaan