Skip to content

Commit

Permalink
devop: better rtc handoff
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Jan 12, 2022
1 parent 3e46099 commit bd2faf3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/connectClient/initiator/MewConnectInitiatorV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -352,7 +351,6 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon {
webRtcConfig: {
initiator: true,
trickle: this.trickle,
iceTransportPolicy: this.iceTransportPolicy,
config: {
iceServers: this.stunServers
},
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = {};
Expand Down

0 comments on commit bd2faf3

Please sign in to comment.