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)
console.log({ iceCandidate })
if (!iceCandidate.candidate) {
//@ts-ignore
await conn.addIceCandidate(null);
await conn.addIceCandidate(iceCandidate);
} else {
await conn.addIceCandidate(iceCandidate);
}