Skip to content

ScreenVideo beta ​

Interface of @v12-engine/render

ts
export interface ScreenVideo

A video drawn into the picture: its element, and what to draw of it each frame (null: nothing this frame)

Members ​

box ​

ts
box(screen: {
        width: number;
        height: number;
    }, video: {
        width: number;
        height: number;
    }): ScreenVideoBox | null;

What to draw of it this frame, for the page's pixels (screen) and the file's size (video): null for nothing

element ​

ts
element: HTMLVideoElement;

The video playing: its frame copied in whenever it has a new one

screen ​

ts
screen(): {
        width: number;
        height: number;
    };

The page's pixels the boxes are said in: the canvas's size as the page lays it out