|
@@ -526,6 +526,10 @@ export default class RTC extends Listenable {
|
526
|
526
|
iceConfig.sdpSemantics = 'plan-b';
|
527
|
527
|
}
|
528
|
528
|
|
|
529
|
+ if (options.forceTurnRelay) {
|
|
530
|
+ iceConfig.iceTransportPolicy = 'relay';
|
|
531
|
+ }
|
|
532
|
+
|
529
|
533
|
// Set the RTCBundlePolicy to max-bundle so that only one set of ice candidates is generated.
|
530
|
534
|
// The default policy generates separate ice candidates for audio and video connections.
|
531
|
535
|
// This change is necessary for Unified plan to work properly on Chrome and Safari.
|