Type alias VideoFrameRequestCallback

VideoFrameRequestCallback: ((now, metadata?) => 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().

      • Optional metadata: VideoFrameCallbackMetadata

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

      Returns void

Generated using TypeDoc