Skip to content

RTCPeerConnectionIceEvent.candidate always null, can't fire "ice-candidate" socket event #18

@fakhripraya

Description

@fakhripraya

hi chaim

i followed your tutorial and the video chat seems to not appearing for the other end
i suspect it happened because the e.candidate on handleICECandidateEvent always null

function handleICECandidateEvent(e) { console.log(e) if (e.candidate) { console.log(e) const payload = { target: otherUser.current, candidate: e.candidate, } socketRef.current.emit("ice-candidate", payload); } }

i keep getting null on e.candidate property whenever the onicecandidate event fired,
the code is exactly simillar to what is in the tutorial, what am i missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions