This commit is contained in:
yumoqing 2024-08-22 17:56:49 +08:00
parent adcec6fe58
commit a03fd9bb8e

View File

@ -280,12 +280,14 @@ bricks.RTCClient = class extends bricks.VBox {
console.log(d.type, 'no branch defined');
break;
}
console.log('signal_status=', this.pc.signalingState,
if (this.pc){
console.log('signal_status=', this.pc.signalingState,
'iceconnectstate=', this.pc.iceConnectionState,
'connectstate=', this.pc.connectionState,
'cantrickleIceCandidate=', this.pc.canTrickleIceCandidates,
'peerConnectionState=', this.pc.peerConnectionState,
'icegatheringstate=', this.pc.iceGatheringState);
}
}
// 创建 PeerConnection