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?
optional autoplay?: boolean;Defined in: types/desktop-engine.d.ts:1101
Whether to play automatically; defaults to false
events?
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
initialTime?
optional initialTime?: number;Defined in: types/desktop-engine.d.ts:1095
Initial playback position (seconds); defaults to 0
loop?
optional loop?: boolean;Defined in: types/desktop-engine.d.ts:1103
Whether to loop (see Video.loop); defaults to false
muted?
optional muted?: boolean;Defined in: types/desktop-engine.d.ts:1105
Whether to mute; defaults to false
objectFit?
optional objectFit?: VideoObjectFit;Defined in: types/desktop-engine.d.ts:1099
Scaling mode; defaults to contain
playbackRate?
optional playbackRate?: number;Defined in: types/desktop-engine.d.ts:1097
Playback rate; defaults to 1.0
src?
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?
optional style?: StyleProperties;Defined in: types/desktop-engine.d.ts:840
Initial style
Inherited from
volume?
optional volume?: number;Defined in: types/desktop-engine.d.ts:1107
Volume from 0 to 1; defaults to 1.0
