Sfoglia il codice sorgente

fix: Do not send trickle candidates to jicofo (#2149)

The candidates are not necessary when we use jvb.
dev1
bgrozev 2 anni fa
parent
commit
b19a9991e9
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      modules/xmpp/JingleSessionPC.js

+ 3
- 1
modules/xmpp/JingleSessionPC.js Vedi File

@@ -518,7 +518,9 @@ export default class JingleSessionPC extends JingleSession {
518 518
                     });
519 519
                 this._gatheringReported = true;
520 520
             }
521
-            this.sendIceCandidate(candidate);
521
+            if (this.isP2P) {
522
+                this.sendIceCandidate(candidate);
523
+            }
522 524
         };
523 525
 
524 526
         // Note there is a change in the spec about closed:

Loading…
Annulla
Salva