瀏覽代碼

Merge pull request #1094 from jitsi/hips-fixup

hips: fix handling senders / receivers when in P2P mode
dev1
Philipp Hancke 5 年之前
父節點
當前提交
1efdbe8e66
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      JitsiConference.js

+ 2
- 2
JitsiConference.js 查看文件

@@ -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
 

Loading…
取消
儲存