Skip to content

VideoOptions beta ​

Interface of @v12-engine/client

ts
export interface VideoOptions extends VideoLook

How 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 ​

ts
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 ​

ts
border?: number;

A border of so many pixels, of borderColor (white)

borderColor ​

ts
borderColor?: string;

The border's colour, as CSS has it; white when left out

bus ​

ts
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 ​

ts
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 ​

ts
chromaSoft?: number;

Over how much more it comes back, 0 to 1 (0.1): a soft edge

chromaThreshold ​

ts
chromaThreshold?: number;

How far from the key's colour a colour is taken out, 0 to 1 (0.3)

class ​

ts
class?: string;

Classes of the game's stylesheet on the element

css ​

ts
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 ​

ts
ease?: string;

The name of the curve its to look is eased along

fit ​

ts
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 ​

ts
for?: number;

How long, seconds; until the file ends when left out

id ​

ts
id?: string;

Its name for code (cut.runningOf, the hooks item:<id>:start and :end)

in ​

ts
in?: number | VideoTransition;

How it comes in at its start, and goes out at its end: seconds of a fade, or a transition

layer ​

ts
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 ​

ts
loop?: boolean;

Whether the file plays over and over

out ​

ts
out?: number | VideoTransition;

How it goes out at its end: seconds of a fade, or a transition

rate ​

ts
rate?: number;

How fast the file plays (1), times the cinematic's own rate

shadowColor ​

ts
shadowColor?: string;

The shadow's colour, as CSS has it (a dark grey, half clear)

start ​

ts
start?: number;

Seconds into the file the clip begins at

to ​

ts
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 ​

ts
volume?: number;

How loud, 0 to 1 (1 when left out); 0 plays it silent

whole ​

ts
whole?: boolean;

As long as its file, whatever its for

z ​

ts
z?: number;

Its stacking on its layer