Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 2.19 KB

sip.js.peerconnectiondelegate.md

File metadata and controls

28 lines (20 loc) · 2.19 KB

Home > sip.js > PeerConnectionDelegate

PeerConnectionDelegate interface

Delegate to handle PeerConnection state changes.

Signature:

export interface PeerConnectionDelegate 

Methods

Method Description
onconnectionstatechange(event) This happens whenever the aggregate state of the connection changes. The aggregate state is a combination of the states of all of the individual network transports being used by the connection.
ondatachannel(event) Triggered when an RTCDataChannel is added to the connection by the remote peer calling createDataChannel().
onicecandidate(event) Triggered when a new ICE candidate has been found.
onicecandidateerror(event) Triggered when an error occurred during ICE candidate gathering.
oniceconnectionstatechange(event) This happens whenever the local ICE agent needs to deliver a message to the other peer through the signaling server. This lets the ICE agent perform negotiation with the remote peer without the browser itself needing to know any specifics about the technology being used for signalingTriggered when the IceConnectionState changes.
onicegatheringstatechange(event) Triggered when the ICE gathering state changes.
onnegotiationneeded(event) Triggered when renegotiation is necessary.
onsignalingstatechange(event) Triggered when the SignalingState changes.
ontrack(event) Triggered when a new track is signaled by the remote peer, as a result of setRemoteDescription.