ReadonlycodedThe 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.
ReadonlycodedThe codedRect property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
ReadonlycodedThe 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.
ReadonlycolorThe colorSpace property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.
ReadonlydisplayThe displayHeight property of the VideoFrame interface returns the height of the VideoFrame after applying aspect ratio adjustments.
ReadonlydisplayThe displayWidth property of the VideoFrame interface returns the width of the VideoFrame after applying aspect ratio adjustments.
ReadonlydurationThe duration property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.
ReadonlyformatThe format property of the VideoFrame interface returns the pixel format of the VideoFrame.
ReadonlytimestampThe timestamp property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.
ReadonlyvisibleThe visibleRect property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this VideoFrame.
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.
Optionaloptions: VideoFrameCopyToOptionsThe clone() method of the VideoFrame interface creates a new VideoFrame object referencing the same media resource as the original.
The close() method of the VideoFrame interface clears all states and releases the reference to the media resource.
The copyTo() method of the VideoFrame interface copies the contents of the VideoFrame to an ArrayBuffer.
Optionaloptions: VideoFrameCopyToOptions
The
VideoFrameinterface of the Web Codecs API represents a frame of a video.MDN Reference