Intent to Implement: HTMLVideoElement.requestAnimationFrame()

474 views
Skip to first unread message

Thomas Guilbert

unread,
Oct 9, 2019, 8:50:40 PM10/9/19
to blin...@chromium.org
tgui...@chromium.org https://github.com/dalecurtis/video-animation-frame/blob/master/explainer.md
N/A. https://github.com/w3ctag/design-reviews/issues/429 HTMLVideoElement.requestAnimationFrame() registers a one-shot callback, called after a video frame has been presented for composition. It also provides useful metadata about that frame. 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.
There are few signals from other browsers. Firefox: No public signals Edge: Public support (https://discourse.wicg.io/t/proposal-video-requestanimationframe/3691/6) Safari: No public signals Web developers: No signals

Ergonomics
The callback can delay the release of frames, which might have some performance implications (i.e slowing down HW decoding).
Yes N/A.
https://www.chromestatus.com/feature/6335927192387584

No.
Reply all
Reply to author
Forward
0 new messages