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