RT @ChromiumDev: 🎬 More people should be aware of the new `requestVideoFrameCallback()` API. Read @tomayac’s post to learn more about it.…
@trappology As the spec states (https://t.co/0RAFWmTV9b.), it’s an estimation. Different user agents (browsers) may use different heuristics.
@trappology For this use case, `canplaythrough` (https://t.co/m1JRWXng4E) is the event you should be listening for. If you’re more of a lazyloading kind of site (or if you don’t preload videos in general or for `Save-Data: 1` folk), then maybe use `loaded
@trappology Use cases are outlined in the Explainer: https://t.co/8ZKt95tlOs.
🔢 New blog post: The `requestVideoFrameCallback` API.
https://t.co/5rmQmUKMb6
The `requestVideoFrameCallback()` method allows developers to register a callback that runs in the rendering steps when a new video frame 🎞 is sent to the compositor.