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

View File

@ -280,6 +280,7 @@ bricks.RTCClient = class extends bricks.VBox {
console.log(d.type, 'no branch defined');
break;
}
if (this.pc){
console.log('signal_status=', this.pc.signalingState,
'iceconnectstate=', this.pc.iceConnectionState,
'connectstate=', this.pc.connectionState,
@ -287,6 +288,7 @@ bricks.RTCClient = class extends bricks.VBox {
'peerConnectionState=', this.pc.peerConnectionState,
'icegatheringstate=', this.pc.iceGatheringState);
}
}
// 创建 PeerConnection
async createPeerConnection(to_info) {