CutVideo beta
Interface of @v12-engine/client
export interface CutVideoA 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
readonly clip: VideoClip;What it plays, as read
done
readonly done: Promise<void>;Settles as it is taken off the screen, for whatever reason
element
readonly element: HTMLVideoElement;The page's <video> element, to listen to, style or draw from
ended
readonly ended: Promise<void>;Settles as its file played to its end by itself (never, for one that loops)
plane
readonly plane: StageVideoPlane | undefined;What draws it into the picture (the picture layer): Babylon's VideoTexture of it and the pass, once made
playing
readonly playing: boolean;Whether it is still on the screen
sound
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
stop(): void;Takes it off the screen now
time
readonly time: number;Seconds into the clip now, on the cinematic's clock