PeerConnectionStatistics

PeerConnectionStatistics

This class is used to fetch the statistics for a RTCPeerConnection

Constructor

(private) new PeerConnectionStatistics()

Source:

Members

peerConnection :RTCPeerConnection

Current RTCPeerConnection based on the peerId

Source:

roomState :SkylinkState

The current skylink state of the room

Source:

Methods

(private) gatherRTCDataChannelDetails()

Formats output object with RTCDataChannel details

Source:

(private) gatherRTCPeerConnectionDetails()

Formats output object with RTCPeerConnection details

Source:

(private) gatherSDPCodecs()

Formats output object with SDP codecs

Source:

(private) gatherSDPIceCandidates()

Formats output object with Ice Candidate details

Source:

getConnectionStatus() → {Promise.<statistics>}

Helper function for getting RTC Connection Statistics

Source:

getStatistics(beSilentOnLogs, isAutoBwStats) → {Promise.<statistics>}

Fetch webRTC stats of a RTCPeerConnection

Parameters:
Name Type Default Description
beSilentOnLogs false
isAutoBwStats false
Source:
Fires:
  • event:getConnectionStatusStateChange