浏览代码

fix(multi-stream) Do not init ParticipantConnectionStatusHandler when source-name signaling is enabled.

dev1
Jaya Allamsetty 3 年前
父节点
当前提交
e4df3c01ab
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      JitsiConference.js

+ 5
- 2
JitsiConference.js 查看文件

431
     this.receiveVideoController = new ReceiveVideoController(this, this.rtc);
431
     this.receiveVideoController = new ReceiveVideoController(this, this.rtc);
432
     this.sendVideoController = new SendVideoController(this, this.rtc);
432
     this.sendVideoController = new SendVideoController(this, this.rtc);
433
 
433
 
434
-    this.participantConnectionStatus
434
+    // Do not initialize ParticipantConnectionStatusHandler when source-name signaling is enabled.
435
+    if (!FeatureFlags.isSourceNameSignalingEnabled()) {
436
+        this.participantConnectionStatus
435
         = new ParticipantConnectionStatusHandler(
437
         = new ParticipantConnectionStatusHandler(
436
             this.rtc,
438
             this.rtc,
437
             this,
439
             this,
442
                 rtcMuteTimeout: config._peerConnStatusRtcMuteTimeout,
444
                 rtcMuteTimeout: config._peerConnStatusRtcMuteTimeout,
443
                 outOfLastNTimeout: config._peerConnStatusOutOfLastNTimeout
445
                 outOfLastNTimeout: config._peerConnStatusOutOfLastNTimeout
444
             });
446
             });
445
-    this.participantConnectionStatus.init();
447
+        this.participantConnectionStatus.init();
448
+    }
446
 
449
 
447
     // Add the ability to enable callStats only on a percentage of users based on config.js settings.
450
     // Add the ability to enable callStats only on a percentage of users based on config.js settings.
448
     let enableCallStats = true;
451
     let enableCallStats = true;

正在加载...
取消
保存