Skip to main content

@pexip/peer-connection-stats

Helps with normalization of data from RTCStats and friends.

Install

npm install @pexip/peer-connection-stats

Related documentation:

Enumerations

EnumerationDescription
Quality-

Interfaces

InterfaceDescription
RTCStats-
Remote-
CandidatePair-
Transport-
Codec-
InboundAudio-
OutboundAudio-
InboundVideo-
OutboundVideo-
MediaSource-
Track-
Stream-
Metrics-
VideoMetrics-
CacheStats-
StatsSignals-
StatsCollectorOptions-
StatsCollector-

Type Aliases

Type AliasDescription
AnyStats-
InboundAudioMetrics-
InboundVideoMetrics-
OutboundAudioMetrics-
OutboundVideoMetrics-
NormalizedRTCStats-
PacketsStats-
AudioQualityStats-
VideoQualityStats-
FPSStats-
CallQualityStats-
CallPacketsStats-

Variables

VariableDescription
STATS_SIZE-
FPS_STATS_SIZE-

Functions

FunctionDescription
createResolverThe WebRTC stats are given to us as a flat structure (an array of objects that contain id-fields pointing to other objects in the same array).
inboundAudioNormalize inbound audio stats
outboundAudioNormalize outbound audio stats
inboundVideoNormalize inbound video stats
outboundVideoNormalize outbound video stats
statsFromNormalize stats into inbound and outbound video and audio stats
statsFromRTCPeerGets raw stats from peerConnection and normalized them
getQuality-
addDeltaStats-
calculateQuality-
createStatsCollectorCreates stats collector
createStatsSignalsCreate and return all required and optional (if specified with more), signals for infinity client to work