Browse Source

fix(conference) Make sure media on jvb connection stays suspended.

Fixes an issue where media gets sent on jvb connection even when the connection is suspended.
master
Jaya Allamsetty 2 years ago
parent
commit
e3a8472f7c
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      JitsiConference.js

+ 5
- 0
JitsiConference.js View File

@@ -1439,6 +1439,11 @@ JitsiConference.prototype._setupNewTrack = function(newTrack) {
1439 1439
     this.rtc.addLocalTrack(newTrack);
1440 1440
     newTrack.setConference(this);
1441 1441
 
1442
+    // Suspend media on the inactive media session since it gets automatically enabled for a newly added source.
1443
+    if (this.isP2PActive()) {
1444
+        this._suspendMediaTransferForJvbConnection();
1445
+    }
1446
+
1442 1447
     // Add event handlers.
1443 1448
     newTrack.muteHandler = this._fireMuteChangeEvent.bind(this, newTrack);
1444 1449
     newTrack.addEventListener(JitsiTrackEvents.TRACK_MUTE_CHANGED, newTrack.muteHandler);

Loading…
Cancel
Save