This commit is contained in:
2023-10-01 19:26:40 +08:00
parent b420d48aaf
commit 6ada6bcecb
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export default class ClientList {
return return
} }
if (data.type === 'candidate') { if (data.type === 'candidate') {
console.log('收到 candidate 并将其添加到远程端') console.log('收到 candidate 并将其添加到远程端', data, this.clientlist)
const pc = this.clientlist.find(client => client.id === data.id).webrtc const pc = this.clientlist.find(client => client.id === data.id).webrtc
await pc.addIceCandidate(data.candidate) await pc.addIceCandidate(data.candidate)
return return