WebRtcPeerConnection
Abstract class representing a peer-to-peer connection.
See also
Inheritors
Properties
Flow of newly added connection dataChannels, as a result of the remote peer calling WebRtcPeerConnection.createDataChannel.
Flow of ICE candidates generated by this peer connection.
Flow of ICE connection state changes.
Flow of ICE gathering state changes.
The local session description for this connection.
Sets a callback to be invoked when negotiation (offer-answer exchange, etc.) is needed for this connection.
The remote session description for this connection.
Flow of signaling state changes.
Flow of connection state changes.
Flow of connection statistics.
Flow of events on a media track (e.g., add, remove).
Functions
Adds a remote ICE candidate to this connection.
Adds a media track to this connection.
Creates an SDP answer in response to a received offer.
Creates an SDP offer for establishing a connection.
Returns implementation of the peer connection that is used under the hood. Use it with caution.
Returns data providing statistics about the overall connection.
Removes a track from this connection using its RTP sender.
Removes a track from this connection.
Restarts ICE negotiation for this connection. Should emit negotiationNeeded
event. The next offer will be created with iceRestart
option.
Sets the local session description.
Sets the remote session description.