瀏覽代碼

fix(JingleSessionPC): Disable unified-plan for p2p chrome.

Do not enable unified plan for p2p chrome by default until StartMutedTest is fixed.
Fix media direction for case when there are no local and remote sources, should be set to 'inactive' in that case.
tags/v0.0.2
Jaya Allamsetty 4 年之前
父節點
當前提交
053a26604d
共有 2 個檔案被更改,包括 4 行新增2 行删除
  1. 3
    1
      modules/RTC/TraceablePeerConnection.js
  2. 1
    1
      modules/xmpp/JingleSessionPC.js

+ 3
- 1
modules/RTC/TraceablePeerConnection.js 查看文件

@@ -2151,7 +2151,9 @@ TraceablePeerConnection.prototype._adjustRemoteMediaDirection = function(remoteD
2151 2151
 
2152 2152
         media.direction = hasLocalSource && hasRemoteSource
2153 2153
             ? MediaDirection.SENDRECV
2154
-            : hasLocalSource ? MediaDirection.RECVONLY : MediaDirection.SENDONLY;
2154
+            : hasLocalSource
2155
+                ? MediaDirection.RECVONLY
2156
+                : hasRemoteSource ? MediaDirection.SENDONLY : MediaDirection.INACTIVE;
2155 2157
     });
2156 2158
 
2157 2159
     return new RTCSessionDescription({

+ 1
- 1
modules/xmpp/JingleSessionPC.js 查看文件

@@ -342,7 +342,7 @@ export default class JingleSessionPC extends JingleSession {
342 342
 
343 343
                         // Provide a way to control the behavior for jvb and p2p connections independently.
344 344
                         && this.isP2P
345
-                        ? options.p2p?.enableUnifiedOnChrome ?? true
345
+                        ? options.p2p?.enableUnifiedOnChrome
346 346
                         : options.enableUnifiedOnChrome ?? true));
347 347
 
348 348
         if (this.isP2P) {

Loading…
取消
儲存