Type Alias VideoFrameRequestCallback

VideoFrameRequestCallback: ((now: DOMHighResTimeStamp, metadata?: VideoFrameCallbackMetadata) => void)

A callback to be fired the next time a frame is presented to the compositor, used by Canvas.requestVideoFrameCallback.

Type declaration

    • (now, metadata?): void
    • Parameters

      • now: DOMHighResTimeStamp

        The current time in milliseconds, see performance.now().

      • Optionalmetadata: VideoFrameCallbackMetadata

        The video frame metadata. If requestVideoFrameCallback() is not natively supported, this is undefined.

      Returns void