Phaser API Documentation

  Version: 
requestVideoFrame(now, metadata)

Description:

This method handles the Request Video Frame callback.

It is called by the browser when a new video frame is ready to be displayed.

It's also responsible for the creation of the video texture, if it doesn't already exist. If it does, it updates the texture as required.

For more details about the Request Video Frame callback, see: https://web.dev/requestvideoframecallback-rvfc

Parameters:

name type description
now DOMHighResTimeStamp

The current time in milliseconds.

metadata VideoFrameCallbackMetadata

Useful metadata about the video frame that was most recently presented for composition. See https://wicg.github.io/video-rvfc/#video-frame-metadata-callback

Since: 3.60.0