RTCPeerConnection
RTCPeerConnection is a core WebRTC API that represents a direct, peer-to-peer connection between the local user agent and a remote peer. It is responsible for negotiating, establishing, and maintaining the media and data exchange between two endpoints. The object lives in the browser and is used to set up real-time communication for audio, video, and arbitrary data.
Key responsibilities include handling the signaling and connection negotiations required to establish a media path. The
Security is integral to RTCPeerConnection. All media and data channels are encrypted by DTLS and SRTP, providing
Typical lifecycle entails creating the connection with a configuration object that may specify iceServers, adding local