WebRTC Encoded Transform: generateKeyFrame
- Category
- WebRTC
- Type
- Chromium catches up
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: https://wpt.fyi/results/webrtc-encoded-transform/script-transform-generateKeyFrame.https.html?label=experimental&label=master&aligned https://wpt.fyi/results/webrtc-encoded-transform/script-transform-generateKeyFrame-simulcast.https.html?label=experimental&label=master&aligned
Summary
This feature allows a WebRTC application to generate a key frame as part of processing in WebRTC encoded transform. There is already another API to generate key frames, but this version is more ergonomic for applications using WebRTC encoded transform.
Motivation
This method can be called by a transformer that is processing outgoing encoded video frames to force a new complete (key) frame to be sent. It might be needed by a WebRTC Encoded Transform that encrypts frames, to ensure that if a new encryption key is added, a key frame encrypted with that key is sent as soon as possible.
Standards & signals
- Specification: https://w3c.github.io/webrtc-encoded-transform/#dom-rtcrtpscripttransformer-generatekeyframe
- Firefox: Shipped/Shipping
- Safari: Shipped/Shipping
- Web developers: No signals
- Tracking bug: https://crbug.com/399327934
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=webrtc-encoded-transform%2Fscript-transform-generateKeyFrame
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+WebRTC%20Encoded%20Transform%3A%20generateKeyFrame
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=WebRTC%20Encoded%20Transform%3A%20generateKeyFrame
- Baseline status: https://webstatus.dev/?q=WebRTC%20Encoded%20Transform%3A%20generateKeyFrame
Explainers: https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame