Back to Content

RTCInboundRtpStreamStats: totalFreezesDuration property

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

latest819 B
Original Source

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

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

A freeze is counted if the interval between two rendered frames is equal or greater than the larger of "three times the average duration", or "the average + 150ms", and the time taken between frames is added to the totalFreezesDuration.

The average freeze duration can be calculated using totalFreezesDuration / freezeCount.

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

Value

A positive number, in seconds.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

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