VideoFrame
interface VideoFrame {
codedHeight: number;
codedRect: null | DOMRectReadOnly;
codedWidth: number;
colorSpace: VideoColorSpace;
displayHeight: number;
displayWidth: number;
duration: null | number;
format: null | VideoPixelFormat;
timestamp: number;
visibleRect: null | DOMRectReadOnly;
allocationSize(options?: VideoFrameCopyToOptions): number;
clone(): VideoFrame;
close(): void;
copyTo(
destination: AllowSharedBufferSource,
options?: VideoFrameCopyToOptions,
): Promise<PlaneLayout[]>;
}
codedHeight: number;
codedRect: null | DOMRectReadOnly;
codedWidth: number;
colorSpace: VideoColorSpace;
displayHeight: number;
displayWidth: number;
duration: null | number;
format: null | VideoPixelFormat;
timestamp: number;
visibleRect: null | DOMRectReadOnly;
allocationSize(options?: VideoFrameCopyToOptions): number;
clone(): VideoFrame;
close(): void;
copyTo(
destination: AllowSharedBufferSource,
options?: VideoFrameCopyToOptions,
): Promise<PlaneLayout[]>;
}
Index
Properties
<internal>.VideoFrame.codedHeight<internal>.VideoFrame.codedRect<internal>.VideoFrame.codedWidth<internal>.VideoFrame.colorSpace<internal>.VideoFrame.displayHeight<internal>.VideoFrame.displayWidth<internal>.VideoFrame.duration<internal>.VideoFrame.format<internal>.VideoFrame.timestamp<internal>.VideoFrame.visibleRect
Methods
Properties
Readonlycoded Height
codedHeight: number
Readonlycoded Rect
Readonlycoded Width
codedWidth: number
Readonlycolor Space
Readonlydisplay Height
displayHeight: number
Readonlydisplay Width
displayWidth: number
Readonlyduration
duration: null | number
Readonlyformat
Readonlytimestamp
timestamp: number
Readonlyvisible Rect
Methods
allocation Size
allocationSize(options?: VideoFrameCopyToOptions): numberclone
clone(): VideoFrameReturns VideoFrame
close
close(): voidReturns void
copy To
copyTo(
destination: AllowSharedBufferSource,
options?: VideoFrameCopyToOptions,
): Promise<PlaneLayout[]>Parameters
destination: AllowSharedBufferSourceOptionaloptions: VideoFrameCopyToOptions
MDN Reference