VideoOptions beta
Interface of @v12-engine/client
export interface VideoOptions extends VideoLookHow a video is played: what a clip of the video lane says besides its file and its moment, and what cut.video is handed
Members
blend
blend?: VideoBlend;How it mixes with what is under it on the page (CSS mix-blend-mode): screen lets the black of a flare go
border
border?: number;A border of so many pixels, of borderColor (white)
borderColor
borderColor?: string;The border's colour, as CSS has it; white when left out
bus
bus?: 'music' | 'effects' | 'voice' | 'ambience' | 'interface';The bus of the game's sound it is heard on (effects when left out): its volume the player's for it
chroma
chroma?: string;A colour of it taken out, as a green screen's (CSS: #00ff00), on the picture layer: what is under it shows there
chromaSoft
chromaSoft?: number;Over how much more it comes back, 0 to 1 (0.1): a soft edge
chromaThreshold
chromaThreshold?: number;How far from the key's colour a colour is taken out, 0 to 1 (0.3)
class
class?: string;Classes of the game's stylesheet on the element
css
css?: Record<string, string>;Styles of its own, as element.style has them ({ boxShadow: '0 0 40px gold' }): put on it as it comes up
ease
ease?: string;The name of the curve its to look is eased along
fit
fit?: 'contain' | 'cover' | 'fill';How the picture fills its box: whole (contain, the default), the box filled and cut to it (cover), stretched (fill)
for
for?: number;How long, seconds; until the file ends when left out
id
id?: string;Its name for code (cut.runningOf, the hooks item:<id>:start and :end)
in
in?: number | VideoTransition;How it comes in at its start, and goes out at its end: seconds of a fade, or a transition
layer
layer?: VideoLayer;In the picture, under the screen's pass (picture, the default: the screen lane's fade, letterbox, tint go over it), or an element of the page: over the picture (screen), over everything (hud)
loop
loop?: boolean;Whether the file plays over and over
out
out?: number | VideoTransition;How it goes out at its end: seconds of a fade, or a transition
rate
rate?: number;How fast the file plays (1), times the cinematic's own rate
shadowColor
shadowColor?: string;The shadow's colour, as CSS has it (a dark grey, half clear)
start
start?: number;Seconds into the file the clip begins at
to
to?: VideoLook;Where the box is, how clear, and its look at the clip's end: eased to from the clip's own along its ease
volume
volume?: number;How loud, 0 to 1 (1 when left out); 0 plays it silent
whole
whole?: boolean;As long as its file, whatever its for
z
z?: number;Its stacking on its layer