浏览代码

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

release-8443
Jorge Oliveira 3 年前
父节点
当前提交
37008a3be7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

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

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

正在加载...
取消
保存