WebRTC allows browsers to communicate directly without a server, peer-to-peer. You can transmit video, sound and data. To connect, browsers must exchange connection parameters: SDP and ICECandidates SDP describes the connection requirements: what video/audio/text will be transmitted, what codecs are supported.
Table of contents
JavaScript. WebRTC. Connecting browsers directly without a server, peer-to-peerTo connect, browsers must exchange connection parameters: SDP and ICECandidatesThe exchange of connection parameters is called SignalingExchange of connection requirements: SDPOffer, SDPAnswerExchange of addresses: ICECandidatesYou can receive all your ICECandidates and send them all as part of SDPSort: