Firefox Tomorrow

web api instance property

RTCInboundRtpStreamStats: totalSamplesDuration property

View on MDN ↗

The totalSamplesDuration property of the RTCRemoteInboundRtpStreamStats dictionary indicates the total duration of all audio samples that have been received. In other words, the current duration of the track.

This can be used with totalAudioEnergy to compute an average audio level over different intervals.

[!NOTE] The value is undefined for video streams.

Value

A positive number, in seconds.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also