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'); console.log(d.type, 'no branch defined');
break; break;
} }
console.log('signal_status=', this.pc.signalingState, if (this.pc){
console.log('signal_status=', this.pc.signalingState,
'iceconnectstate=', this.pc.iceConnectionState, 'iceconnectstate=', this.pc.iceConnectionState,
'connectstate=', this.pc.connectionState, 'connectstate=', this.pc.connectionState,
'cantrickleIceCandidate=', this.pc.canTrickleIceCandidates, 'cantrickleIceCandidate=', this.pc.canTrickleIceCandidates,
'peerConnectionState=', this.pc.peerConnectionState, 'peerConnectionState=', this.pc.peerConnectionState,
'icegatheringstate=', this.pc.iceGatheringState); 'icegatheringstate=', this.pc.iceGatheringState);
}
} }
// 创建 PeerConnection // 创建 PeerConnection