forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RTCOutboundRtpStreamStats.keyFramesEncoded - add
- Loading branch information
1 parent
f264191
commit 0a9e445
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
files/en-us/web/api/rtcoutboundrtpstreamstats/keyframesencoded/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |