← Back to release summary

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

Ecosystem

Explainers: https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame

View on chromestatus.com