Skip to content

Commit bd2faf3

Browse files
committedJan 12, 2022
devop: better rtc handoff
1 parent 3e46099 commit bd2faf3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎src/connectClient/initiator/MewConnectInitiatorV2.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon {
5252
this.retryCount = 0;
5353

5454
// WebRTC options
55-
this.iceTransportPolicy = 'all';
5655
this.trickle = false;
5756
} catch (e) {
5857
debug('constructor error:', e);
@@ -352,7 +351,6 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon {
352351
webRtcConfig: {
353352
initiator: true,
354353
trickle: this.trickle,
355-
iceTransportPolicy: this.iceTransportPolicy,
356354
config: {
357355
iceServers: this.stunServers
358356
},
@@ -431,16 +429,14 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon {
431429

432430
this.iceServers = null;
433431
const defaultOptions = {
434-
initiator: this.trickle,
432+
initiator: true,
435433
trickle: this.trickle,
436-
// iceTransportPolicy: 'all', //'relay',
437434
config: {
438435
iceServers: webRtcServers
439436
},
440437
wrtc: wrtc
441438
};
442439

443-
//
444440
const simpleOptions = {
445441
...defaultOptions,
446442
...webRtcConfig
@@ -584,7 +580,6 @@ export default class MewConnectInitiatorV2 extends MewConnectCommon {
584580
webRtcConfig: {
585581
initiator: true,
586582
trickle: this.trickle,
587-
iceTransportPolicy: 'relay',
588583
config: {
589584
iceServers: data.iceServers.map(obj => {
590585
const newObject = {};

0 commit comments

Comments
 (0)
Please sign in to comment.