← Back to release summary
HTMLVideoElement.requestVideoFrameCallback()
- Category
- Multimedia
- Type
- New or changed feature
- Status
- Enabled by default (Chrome 83)
- Intent stage
- Evaluate readiness to ship
Summary
HTMLVideoElement.requestVideoFrameCallback() registers a one-shot callback, called when a video frame has been presented for composition. It also provides useful metadata about that frame.
Motivation
This features allows web applications that use WebGL or <canvas> with <video> to composite at the video rate rather than the display rate.
It also allows for reliable video metadata which can be correlated with other page events (e.g. user inputs) and used for automated analysis.
It also allows frame-accurate web-platform-tests.
Standards & signals
- Specification: https://wicg.github.io/video-rvfc/
- Firefox: Positive — There are still outstanding naming issues. The official stance is somewhere between 'not harmful' and 'useful/positive'.
- Safari: No signal — https://lists.webkit.org/pipermail/webkit-dev/2020-January/031030.html
https://lists.webkit.org/pipermail/webkit-dev/2020-February/031111.html
- Web developers: Positive — Various amounts of positive interest has been surfaced by developpers.
E.g.:
https://github.com/WICG/video-raf/issues/3#issuecomment-591948740
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1012063
Docs: https://web.dev/requestvideoframecallback-rvfc/
Explainers: https://github.com/WICG/video-rvfc/blob/gh-pages/explainer.md
View on chromestatus.com