Explorar el Código

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

dev1
Jorge Oliveira hace 3 años
padre
commit
37008a3be7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

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

@@ -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) {

Loading…
Cancelar
Guardar