Skip to content

StageVideos beta ​

Interface of @v12-engine/client

ts
export interface StageVideos

Where the stage draws a video into its picture (CI4): under the screen's pass, so that its fade, letterbox, tint go over it. frame is asked every frame for what to draw, with the screen's size and the file's (null: nothing this frame); z is its stacking among the others

Members ​

show ​

ts
show(element: HTMLVideoElement, options: {
        z?: number;
        frame(screen: {
            width: number;
            height: number;
        }, video: {
            width: number;
            height: number;
        }): VideoPlaneFrame | null;
    }): StageVideoPlane;

Draws element into the picture from the next frame on, as frame says each frame, until remove