deb
This commit is contained in:
parent
4e94d88651
commit
4bc89254d2
1 changed files with 1 additions and 2 deletions
|
|
@ -48,8 +48,7 @@ export default class webRTC {
|
||||||
const iceCandidate: IceCandidate = JSON.parse(candidate)
|
const iceCandidate: IceCandidate = JSON.parse(candidate)
|
||||||
console.log({ iceCandidate })
|
console.log({ iceCandidate })
|
||||||
if (!iceCandidate.candidate) {
|
if (!iceCandidate.candidate) {
|
||||||
//@ts-ignore
|
await conn.addIceCandidate(iceCandidate);
|
||||||
await conn.addIceCandidate(null);
|
|
||||||
} else {
|
} else {
|
||||||
await conn.addIceCandidate(iceCandidate);
|
await conn.addIceCandidate(iceCandidate);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue