addIceCandidate
addIceCandidate is a method of the RTCPeerConnection interface in the WebRTC API. It is used to add a remote ICE candidate to the local peer connection so that the ICE agent can consider this candidate during connectivity checks. This process is part of ICE, which helps peers establish a path through NATs and firewalls for media and data streams.
Signature and return: In modern browsers, addIceCandidate accepts an RTCIceCandidate object or an RTCIceCandidateInit dictionary and
Usage and timing: ICE candidates are gathered by each peer and exchanged via a signaling channel. When
End-of-candidates and signaling notes: Some implementations support signaling of the end of candidate gathering, but this
Compatibility and pitfalls: The Promise-based form is standard in modern engines (Chrome, Edge, Firefox, Safari). Some