I have few doubt about webrtc peer to peer implementation.
- Is it necessary to exchange ice candidate between peer.
When I check sample code I found that
// send any ice candidates to the other peer
pc.onicecandidate = ({candidate}) => signaling.send({candidate});
........................
........................
signaling.onmessage =...........
......................
if (candidate) {
await pc.addIceCandidate(candidate);
- Does the onicecandidate triggered on both peer or in offer peer only ?
I tested that without exchanging icecandidate the video stream works.
Does it create any problem in certain condition.