Interface 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[]>;
}

Properties

codedHeight: number
codedRect: null | DOMRectReadOnly
codedWidth: number
colorSpace: VideoColorSpace
displayHeight: number
displayWidth: number
duration: null | number
format: null | VideoPixelFormat
timestamp: number
visibleRect: null | DOMRectReadOnly

Methods

  • Parameters

    Returns number

  • Returns void