video
Module(s): vncanvas-base, vncanvas-media
Description: Play a movie for intros, cutscenes or endings.
- Video settings, such as view size, can be set in configuration file.
video, {param} |
Play a video clip. Script execution is paused until video clip has finished or on user click. Parameters are given as {param:value, param:value, ...} |
| Parameter | Attributes and Description |
|---|---|
|
src:"path_to_video_file_no_extension"
|
Speficy the path to the video file with
no extension.
Also accepts a user variable as path to the video file, still without extension. |
|
format:[array_of_formats]
|
Optional
Engine autodetects which of the given formats
is playable on the platform. For maximum compatibility with all browsers,
provide multiple formats for the video (typically, "ogv" and "mp4").
Default video formats can now be set in Config file and are used if format is not given. |
A video clip is played as given.
chapter = [
...
/* Note: formats may be "ogg", "ogv", "mp4", "m4v" or "webm" */
video, {src:"sample_movie", format:["mp4", "ogv"]},
...
];