Parser functions for PeerConnectionStatistics
Methods
(static) parseAudio(state, output, type, value, peerId, isAutoBwStats, direction)
Function that parses the raw stats from the RTCInboundRtpStreamStats and RTCOutboundRtpStreamStats dictionary.
Parameters:
Name | Type | Description |
---|---|---|
state |
SkylinkState |
The room state. |
output |
Object |
Stats output object that stores the parsed stats values. |
type |
String |
Stats dictionary identifier. |
value |
RTCPeerConnection |
Stats value. |
peerId |
String |
The peer Id. |
isAutoBwStats |
Boolean |
The flag if auto bandwidth adjustment is true. |
direction |
String |
The direction of the media flow, i.e. sending or receiving |
(static) parseCertificates(output, stats)
Function that parses the raw stats from the RTCCertificateStats dictionary.
Parameters:
Name | Type | Description |
---|---|---|
output |
Object |
Stats output object that stores the parsed stats values. |
stats |
Object |
Stats object. |
(static) parseSelectedCandidatePair(roomState, output, peerConnection, peerId, isAutoBwStats)
Function that parses the raw stats from the RTCIceCandidatePairStats dictionary.
Parameters:
Name | Type | Description |
---|---|---|
roomState |
SkylinkState |
The room state. |
output |
Object |
Stats output object that stores the parsed stats values. |
peerConnection |
RTCPeerConnection |
The peer connection. |
peerId |
String |
The peer Id. |
isAutoBwStats |
boolean |
The flag if auto bandwidth adjustment is true. |
(static) parseVideo(state, output, type, value, peerId, isAutoBwStats, direction)
Function that parses the raw stats from the RTCInboundRtpStreamStats and RTCOutboundRtpStreamStats dictionary.
Parameters:
Name | Type | Description |
---|---|---|
state |
SkylinkState |
The room state. |
output |
Object |
Stats output object that stores the parsed stats values. |
type |
String |
Stats dictionary identifier. |
value |
RTCPeerConnection |
Stats value. |
peerId |
String |
The peer Id. |
isAutoBwStats |
Boolean |
The flag if auto bandwidth adjustment is true. |
direction |
String |
The direction of the media flow, i.e. sending or receiving |