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
Readonly
coded Height
codedHeight: number
Readonly
coded Rect
Readonly
coded Width
codedWidth: number
Readonly
color Space
Readonly
display Height
displayHeight: number
Readonly
display Width
displayWidth: number
Readonly
duration
duration: null | number
Readonly
format
Readonly
timestamp
timestamp: number
Readonly
visible Rect
Methods
allocation Size
allocationSize(options?: VideoFrameCopyToOptions): number
clone
clone(): VideoFrame
Returns VideoFrame
close
close(): void
Returns void
copy To
copyTo(
destination: AllowSharedBufferSource,
options?: VideoFrameCopyToOptions,
): Promise<PlaneLayout[]>
Parameters
destination: AllowSharedBufferSource
Optional
options: VideoFrameCopyToOptions
MDN Reference