lib/RTCPeerConnection.js
function setConfigurationAndOptions(pcConfig) {
	// Clone pcConfig.
	this.pcConfig = merge(true, pcConfig);

	// Fix pcConfig.
	Adapter.fixPeerConnectionConfig(this.pcConfig);

	this.options = {
		iceTransportsRelay: (this.pcConfig.iceTransports === 'relay'),
		iceTransportsNone: (this.pcConfig.iceTransports === 'none'),
		gatheringTimeout: this.pcConfig.gatheringTimeout,
		gatheringTimeoutAfterRelay: this.pcConfig.gatheringTimeoutAfterRelay
	};

	// Remove custom rtcninja.RTCPeerConnection options from pcConfig.
	delete this.pcConfig.gatheringTimeout;
	delete this.pcConfig.gatheringTimeoutAfterRelay;

	debug('setConfigurationAndOptions | processed pcConfig: %o', this.pcConfig);
}
function setConfigurationAndOptions(pcConfig) {
	// Clone pcConfig.
	this.pcConfig = merge(true, pcConfig);

	// Fix pcConfig.
	Adapter.fixPeerConnectionConfig(this.pcConfig);

	this.options = {
		iceTransportsRelay: (this.pcConfig.iceTransports === 'relay'),
		iceTransportsNone: (this.pcConfig.iceTransports === 'none'),
		gatheringTimeout: this.pcConfig.gatheringTimeout,
		gatheringTimeoutAfterRelay: this.pcConfig.gatheringTimeoutAfterRelay
	};

	// Remove custom rtcninja.RTCPeerConnection options from pcConfig.
	delete this.pcConfig.gatheringTimeout;
	delete this.pcConfig.gatheringTimeoutAfterRelay;

	debug('setConfigurationAndOptions | processed pcConfig: %o', this.pcConfig);
}
function setConfigurationAndOptions ( pcConfig ) { // Clone pcConfig. this . pcConfig = merge ( true , pcConfig ) ; // Fix pcConfig. Adapter . fixPeerConnectionConfig ( this . pcConfig ) ; this . options = { iceTransportsRelay : ( this . pcConfig . iceTransports === 'relay' ) , iceTransportsNone : ( this . pcConfig . iceTransports === 'none' ) , gatheringTimeout : this . pcConfig . gatheringTimeout , gatheringTimeoutAfterRelay : this . pcConfig . gatheringTimeoutAfterRelay } ; // Remove custom rtcninja.RTCPeerConnection options from pcConfig. delete this . pcConfig . gatheringTimeout ; delete this . pcConfig . gatheringTimeoutAfterRelay ; debug ( 'setConfigurationAndOptions | processed pcConfig: %o' , this . pcConfig ) ; }
Private Helpers.
Private Helpers .