Skip to content

CutVideo beta ​

Interface of @v12-engine/client

ts
export interface CutVideo

A video playing (CN51): what code reaches of a clip of the video lane (the hooks' clip.handle, cut.running) and what cut.video gives back. element is the page's <video>, to listen to, style, draw from, anything the DOM does; the cinematic's clock leads it all the same (where it is in its file, whether it plays, its rate), and what of its style the clip says (its box, opacity, the look it eases, a transition's) is the clip's, put back as that changes. Taken off the screen as its clip ends, stop, a skip. On the picture layer the element is on no page: what draws it is plane (its texture and its pass)

Members ​

clip ​

ts
readonly clip: VideoClip;

What it plays, as read

done ​

ts
readonly done: Promise<void>;

Settles as it is taken off the screen, for whatever reason

element ​

ts
readonly element: HTMLVideoElement;

The page's <video> element, to listen to, style or draw from

ended ​

ts
readonly ended: Promise<void>;

Settles as its file played to its end by itself (never, for one that loops)

plane ​

ts
readonly plane: StageVideoPlane | undefined;

What draws it into the picture (the picture layer): Babylon's VideoTexture of it and the pass, once made

playing ​

ts
readonly playing: boolean;

Whether it is still on the screen

sound ​

ts
readonly sound: CutMediaSound | undefined;

Its sound through the game's (CN52): its volume's node, its element's source, nodes of code's put in before its volume. None where the stage has no sound (its element's own volume is its then)

stop ​

ts
stop(): void;

Takes it off the screen now

time ​

ts
readonly time: number;

Seconds into the clip now, on the cinematic's clock