DEBUG: candidate 状态

This commit is contained in:
2023-10-22 15:45:18 +08:00
parent 688ba3a7f6
commit 8829a6cbb2
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export default class ClientList {
} }
webrtc.oniceconnectionstatechange = async event => { webrtc.oniceconnectionstatechange = async event => {
if (webrtc.iceConnectionState === 'disconnected' || webrtc.iceConnectionState === 'failed') { if (webrtc.iceConnectionState === 'disconnected' || webrtc.iceConnectionState === 'failed') {
const client = this.clientlist.find(x => x.id === data.id) const client = this.clientlist.find(x => x.id === data.id) ?? {}
console.error(data.name, '需要添加新的 candidate', client.online) console.error(data.name, '需要添加新的 candidate', client.online)
// 添加新的 candidate // 添加新的 candidate
} else if (webrtc.iceConnectionState === 'connected' || webrtc.iceConnectionState === 'completed') { } else if (webrtc.iceConnectionState === 'connected' || webrtc.iceConnectionState === 'completed') {