fix
This commit is contained in:
parent
4bc89254d2
commit
cebb8559c1
1 changed files with 1 additions and 3 deletions
|
|
@ -47,9 +47,7 @@ export default class webRTC {
|
||||||
const conn = this.connections[key]
|
const conn = this.connections[key]
|
||||||
const iceCandidate: IceCandidate = JSON.parse(candidate)
|
const iceCandidate: IceCandidate = JSON.parse(candidate)
|
||||||
console.log({ iceCandidate })
|
console.log({ iceCandidate })
|
||||||
if (!iceCandidate.candidate) {
|
if (iceCandidate.candidate) {
|
||||||
await conn.addIceCandidate(iceCandidate);
|
|
||||||
} else {
|
|
||||||
await conn.addIceCandidate(iceCandidate);
|
await conn.addIceCandidate(iceCandidate);
|
||||||
}
|
}
|
||||||
return {}
|
return {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue