Back to Content

RTCInboundRtpStreamStats: totalPausesDuration property

files/en-us/web/api/rtcinboundrtpstreamstats/totalpausesduration/index.md

latest749 B
Original Source

{{APIRef("WebRTC")}}{{SeeCompatTable}}

The totalPausesDuration property of the {{domxref("RTCRemoteInboundRtpStreamStats")}} dictionary indicates the total time that the video in this stream has spent paused, in seconds

A pause is counted when a new frame is rendered more than 5 seconds after the last frame was rendered, and the time taken between frames is added to the totalPausesDuration.

The average pause duration can be calculated using totalPausesDuration / pauseCount.

[!NOTE] The property is undefined for audio streams.

Value

A positive number, in seconds.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("RTCInboundRtpStreamStats.pauseCount", "pauseCount")}}