HTMLVideoElement.requestVideoFrameCallback()

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.

Documentation

Specification

Editor's draft

Status in Chromium

Blink>Media


Enabled by default (tracking bug) in:

  • Chrome for desktop release 83
  • Chrome for Android release 83
  • Chrome for iOS release 83

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Search tags

video, requestVideoFrameCallback, HTMLVideoElement,

Last updated on 2020-10-25