浏览代码

Change the RTCBundlePolicy to 'max-bundle' for all peerconnections

dev1
Jaya Allamsetty 5 年前
父节点
当前提交
de0ae00850
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      modules/RTC/RTC.js

+ 5
- 0
modules/RTC/RTC.js 查看文件

@@ -509,6 +509,11 @@ export default class RTC extends Listenable {
509 509
             iceConfig.sdpSemantics = 'plan-b';
510 510
         }
511 511
 
512
+        // Set the RTCBundlePolicy to max-bundle so that only one set of ice candidates is generated.
513
+        // The default policy generates separate ice candidates for audio and video connections.
514
+        // This change is necessary for Unified plan to work properly on Chrome and Safari.
515
+        iceConfig.bundlePolicy = 'max-bundle';
516
+
512 517
         peerConnectionIdCounter = safeCounterIncrement(peerConnectionIdCounter);
513 518
 
514 519
         const newConnection

正在加载...
取消
保存