VideoFrame
The VideoFrame interface of the Web Codecs API represents a frame of a video.
Properties
The codedHeight property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
The codedRect property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
The codedWidth property of the VideoFrame interface returns the width of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
The colorSpace property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.
The displayHeight property of the VideoFrame interface returns the height of the VideoFrame after applying aspect ratio adjustments.
The displayWidth property of the VideoFrame interface returns the width of the VideoFrame after applying aspect ratio adjustments.
The format property of the VideoFrame interface returns the pixel format of the VideoFrame.
The visibleRect property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this VideoFrame.
Functions
The allocationSize() method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.
The clone() method of the VideoFrame interface creates a new VideoFrame object referencing the same media resource as the original.
The copyTo() method of the VideoFrame interface copies the contents of the VideoFrame to an ArrayBuffer.
The copyTo() method of the VideoFrame interface copies the contents of the VideoFrame to an ArrayBuffer.