Browse Source

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

dev1
Jaya Allamsetty 3 years ago
parent
commit
e4df3c01ab
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      JitsiConference.js

+ 5
- 2
JitsiConference.js View File

@@ -431,7 +431,9 @@ JitsiConference.prototype._init = function(options = {}) {
431 431
     this.receiveVideoController = new ReceiveVideoController(this, this.rtc);
432 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 437
         = new ParticipantConnectionStatusHandler(
436 438
             this.rtc,
437 439
             this,
@@ -442,7 +444,8 @@ JitsiConference.prototype._init = function(options = {}) {
442 444
                 rtcMuteTimeout: config._peerConnStatusRtcMuteTimeout,
443 445
                 outOfLastNTimeout: config._peerConnStatusOutOfLastNTimeout
444 446
             });
445
-    this.participantConnectionStatus.init();
447
+        this.participantConnectionStatus.init();
448
+    }
446 449
 
447 450
     // Add the ability to enable callStats only on a percentage of users based on config.js settings.
448 451
     let enableCallStats = true;

Loading…
Cancel
Save