Skip to content

Interface: VideoOptions ​

Defined in: types/desktop-engine.d.ts:1091

Video constructor options. Each is applied as if it were assigned to the Video property of the same name right after new: a value the property doesn't take (e.g. loop: 'no', volume: '0.5') is ignored and the default stays

Extends ​

Properties ​

autoplay? ​

ts
optional autoplay?: boolean;

Defined in: types/desktop-engine.d.ts:1101

Whether to play automatically; defaults to false


events? ​

ts
optional events?: string[];

Defined in: types/desktop-engine.d.ts:842

Event names to enable on the native side up front (JS still needs a callback to receive them)

Inherited from ​

ComponentOptions.events


initialTime? ​

ts
optional initialTime?: number;

Defined in: types/desktop-engine.d.ts:1095

Initial playback position (seconds); defaults to 0


loop? ​

ts
optional loop?: boolean;

Defined in: types/desktop-engine.d.ts:1103

Whether to loop (see Video.loop); defaults to false


muted? ​

ts
optional muted?: boolean;

Defined in: types/desktop-engine.d.ts:1105

Whether to mute; defaults to false


objectFit? ​

ts
optional objectFit?: VideoObjectFit;

Defined in: types/desktop-engine.d.ts:1099

Scaling mode; defaults to contain


playbackRate? ​

ts
optional playbackRate?: number;

Defined in: types/desktop-engine.d.ts:1097

Playback rate; defaults to 1.0


src? ​

ts
optional src?: string;

Defined in: types/desktop-engine.d.ts:1093

Video source: an http(s) URL or a path inside the package or sandbox; a data: URL plays nothing (a console warning)


style? ​

ts
optional style?: StyleProperties;

Defined in: types/desktop-engine.d.ts:840

Initial style

Inherited from ​

ComponentOptions.style


volume? ​

ts
optional volume?: number;

Defined in: types/desktop-engine.d.ts:1107

Volume from 0 to 1; defaults to 1.0

The SDK is released under the Apache License 2.0