浏览代码

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 3 年前
父节点
当前提交
85fb01c080
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/RTC/TPCUtils.js

+ 1
- 1
modules/RTC/TPCUtils.js 查看文件

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

正在加载...
取消
保存