Ver código fonte

fix(TPC) add muted tracks if p2p is disabled (fix #1851)

dev1
Jorge Oliveira 3 anos atrás
pai
commit
37008a3be7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

+ 1
- 1
modules/RTC/TraceablePeerConnection.js Ver arquivo

@@ -1645,7 +1645,7 @@ TraceablePeerConnection.prototype.addTrack = function(track, isInitiator = false
1645 1645
 
1646 1646
     if (this._usesUnifiedPlan) {
1647 1647
         logger.debug(`${this} TPC.addTrack using unified plan`);
1648
-        if (webrtcStream) {
1648
+        if (webrtcStream || !this.isP2P) {
1649 1649
             try {
1650 1650
                 this.tpcUtils.addTrack(track, isInitiator);
1651 1651
             } catch (error) {

Carregando…
Cancelar
Salvar