Back to Content

RTCInboundRtpStreamStats: pauseCount property

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

latest657 B
Original Source

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

The pauseCount property of the {{domxref("RTCRemoteInboundRtpStreamStats")}} dictionary indicates the total number of pauses experienced by this receiver.

A pause is counted when a new frame is rendered more than 5 seconds after the last frame was rendered.

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

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

Value

A positive integer.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

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