Function getImageDataFromVideoElement

  • Retrieves image data from the provided HTMLVideoElement for processing.

    Ensures the video element is in a ready state and has non-zero dimensions before extracting the image data.

    Parameters

    • videoElement: HTMLVideoElement

      The HTMLVideoElement to extract image data from.

    Returns null | ImageData

    ImageData if successful, or null in case of failure or invalid state.

Generated using TypeDoc