This commit is contained in:
boufni95 2025-02-05 19:29:25 +00:00
parent 4e94d88651
commit 4bc89254d2

View file

@ -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);
} }