Back to Content

RTCInboundRtpStreamStats: keyFramesDecoded property

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

latest680 B
Original Source

{{APIRef("WebRTC")}}

The keyFramesDecoded property of the {{domxref("RTCInboundRtpStreamStats")}} dictionary represents the total number of key frames successfully decoded in this RTP media stream. This includes, for example, key frames in VP8 ({{rfc("6386")}}) or IDR-frames in H.264 ({{rfc("6184")}}).

Note that the number of delta frames is calculated by subtracting this value from the total number of frames ({{domxref("RTCInboundRtpStreamStats.framesDecoded","framesDecoded")}} - keyFramesEncoded).

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

Value

A positive integer.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}