Bladeren bron

Merge pull request #1094 from jitsi/hips-fixup

hips: fix handling senders / receivers when in P2P mode
dev1
Philipp Hancke 5 jaren geleden
bovenliggende
commit
1efdbe8e66
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      JitsiConference.js

+ 2
- 2
JitsiConference.js Bestand weergeven

@@ -1115,7 +1115,7 @@ JitsiConference.prototype._setupNewTrack = function(newTrack) {
1115 1115
     this.eventEmitter.emit(JitsiConferenceEvents.TRACK_ADDED, newTrack);
1116 1116
 
1117 1117
     // Setup E2EE handling, if supported.
1118
-    if (this._e2eeCtx) {
1118
+    if (!this.isP2PActive() && this._e2eeCtx) {
1119 1119
         const activeTPC = this.getActivePeerConnection();
1120 1120
         const sender = activeTPC ? activeTPC.findSenderForTrack(newTrack.track) : null;
1121 1121
 
@@ -1654,7 +1654,7 @@ JitsiConference.prototype.onRemoteTrackAdded = function(track) {
1654 1654
     }
1655 1655
 
1656 1656
     // Setup E2EE handling, if supported.
1657
-    if (this._e2eeCtx) {
1657
+    if (!this.isP2PActive() && this._e2eeCtx) {
1658 1658
         const activeTPC = this.getActivePeerConnection();
1659 1659
         const receiver = activeTPC ? activeTPC.findReceiverForTrack(track.track) : null;
1660 1660
 

Laden…
Annuleren
Opslaan