Skip to content

Commit

Permalink
RTCOutboundRtpStreamStats.keyFramesEncoded - add
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Jan 20, 2025
1 parent f264191 commit 0a9e445
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "RTCOutboundRtpStreamStats: keyFramesEncoded property"
short-title: keyFramesEncoded
slug: Web/API/RTCOutboundRtpStreamStats/keyFramesEncoded
page-type: web-api-instance-property
browser-compat: api.RTCStatsReport.type_outbound-rtp.keyFramesEncoded
---

{{APIRef("WebRTC")}}

The **`keyFramesEncoded`** property of the {{domxref("RTCOutboundRtpStreamStats")}} dictionary represents the total number of key frames successfully encoded 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("RTCOutboundRtpStreamStats.framesEncoded","framesEncoded")}} - `keyFramesEncoded`).

> [!NOTE]
> The value does not exist for audio.
## Value

A positive integer.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

0 comments on commit 0a9e445

Please sign in to comment.