WebRTC Metrics

A comprehensive overview of WebRTC statistics, derived calculations, and extracted features, to better understand call quality, connectivity, and user experience in rtcStats

Back
On this page3 sections
inboundaudio

inbound-rtp.totalSamplesDuration

Last updated Applies toany rtcStats setup

The audio duration of the receiving track.

Description

Real number; in seconds

MUST NOT exist for video (this is audio only).

Represents the audio duration of the receiving track. For audio durations of tracks attached locally, see RTCAudioSourceStats instead.

Represents the total duration in seconds of all samples that have been received (and thus counted by totalSamplesReceived). Can be used with totalAudioEnergy to compute an average audio level over different intervals.

See also

Notes

  • An audio sample refers to having a sample in any channel of an audio track - if multiple audio channels are used, metrics based on samples do not increment at a higher rate, simultaneously having samples in multiple channels counts as a single sample

Was this page helpful?