Explorar el Código

fix(TPC): Ignore stopped transceivers on FF during new track addition.

Firefox lists stopped transceivers when getTranceivers is called, ignore these when picking a trancceiver for a screenshare track. Fixes an issue when starting screenshare fails if there are stopped tranceivers in the peerconnection (i.e., if some remote users with sources have left the call).
dev1
Jaya Allamsetty hace 3 años
padre
commit
85fb01c080
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      modules/RTC/TPCUtils.js

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

379
 
379
 
380
                 // Re-use any existing recvonly transceiver (if available) for p2p case.
380
                 // Re-use any existing recvonly transceiver (if available) for p2p case.
381
                 && ((this.pc.isP2P && t.currentDirection === MediaDirection.RECVONLY)
381
                 && ((this.pc.isP2P && t.currentDirection === MediaDirection.RECVONLY)
382
-                    || t.currentDirection === MediaDirection.INACTIVE));
382
+                    || (t.currentDirection === MediaDirection.INACTIVE && !t.stopped)));
383
 
383
 
384
         // For mute/unmute operations, find the transceiver based on the track index in the source name if present,
384
         // For mute/unmute operations, find the transceiver based on the track index in the source name if present,
385
         // otherwise it is assumed to be the first local track that was added to the peerconnection.
385
         // otherwise it is assumed to be the first local track that was added to the peerconnection.

Loading…
Cancelar
Guardar