From bd2faf33d8f9c8a4cf2718d250ff35882caeeea2 Mon Sep 17 00:00:00 2001 From: Kosala Hemachandra <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 12 Jan 2022 13:18:02 -0800 Subject: [PATCH] devop: better rtc handoff --- src/connectClient/initiator/MewConnectInitiatorV2.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/connectClient/initiator/MewConnectInitiatorV2.js b/src/connectClient/initiator/MewConnectInitiatorV2.js index b02ca6d3..710f9bef 100644 --- a/src/connectClient/initiator/MewConnectInitiatorV2.js +++ b/src/connectClient/initiator/MewConnectInitiatorV2.js @@ -52,7 +52,6 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon { this.retryCount = 0; // WebRTC options - this.iceTransportPolicy = 'all'; this.trickle = false; } catch (e) { debug('constructor error:', e); @@ -352,7 +351,6 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon { webRtcConfig: { initiator: true, trickle: this.trickle, - iceTransportPolicy: this.iceTransportPolicy, config: { iceServers: this.stunServers }, @@ -431,16 +429,14 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon { this.iceServers = null; const defaultOptions = { - initiator: this.trickle, + initiator: true, trickle: this.trickle, - // iceTransportPolicy: 'all', //'relay', config: { iceServers: webRtcServers }, wrtc: wrtc }; - // const simpleOptions = { ...defaultOptions, ...webRtcConfig @@ -584,7 +580,6 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon { webRtcConfig: { initiator: true, trickle: this.trickle, - iceTransportPolicy: 'relay', config: { iceServers: data.iceServers.map(obj => { const newObject = {};