Back to Content

RTCInboundRtpStreamStats: totalInterFrameDelay property

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

latest799 B
Original Source

{{APIRef("WebRTC")}}

The totalInterFrameDelay property of the {{domxref("RTCInboundRtpStreamStats")}} dictionary indicates the total accumulated time between consecutively rendered frames, in seconds. It is recorded after each frame is rendered.

The inter-frame delay variance can be calculated from totalInterFrameDelay, {{domxref("RTCInboundRtpStreamStats.totalSquaredInterFrameDelay","totalSquaredInterFrameDelay")}} , and {{domxref("RTCInboundRtpStreamStats.framesRendered","framesRendered")}} according to the formula: (totalSquaredInterFrameDelay - totalInterFrameDelay^2/ framesRendered)/framesRendered.

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

Value

A positive number, in seconds.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}