DEBUG: candidate 状态
This commit is contained in:
parent
688ba3a7f6
commit
8829a6cbb2
@ -119,7 +119,7 @@ export default class ClientList {
|
||||
}
|
||||
webrtc.oniceconnectionstatechange = async event => {
|
||||
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)
|
||||
// 添加新的 candidate
|
||||
} else if (webrtc.iceConnectionState === 'connected' || webrtc.iceConnectionState === 'completed') {
|
||||
|
Loading…
Reference in New Issue
Block a user