Interface VideoFrame

    interface VideoFrame {
        codedHeight: number;
        codedRect: DOMRectReadOnly;
        codedWidth: number;
        colorSpace: VideoColorSpace;
        displayHeight: number;
        displayWidth: number;
        duration: number;
        format: VideoPixelFormat;
        timestamp: number;
        visibleRect: DOMRectReadOnly;
        allocationSize(options?: VideoFrameCopyToOptions): number;
        clone(): VideoFrame;
        close(): void;
        copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
    }

    Properties

    codedHeight: number
    codedRect: DOMRectReadOnly
    codedWidth: number
    colorSpace: VideoColorSpace
    displayHeight: number
    displayWidth: number
    duration: number
    timestamp: number
    visibleRect: DOMRectReadOnly

    Methods