<< Go Commands << Go Home

Command @video

Description:

Inserts a video in a page.
 
Warning: command only works inside a .tg9 file.

Syntax:

@video
@@src
@@width
@@height
@@autoplay
@@loop
@end_video

Parameters:

Param @@src
description: path to video file
options:
default:
optional: no
Param @@width
description: video box width
options: px, auto
default: auto
optional: yes
 
Param @@height
description: video box height
options: px, auto
default: auto
optional: yes
 
Param @@autoplay
description: automaticly starts video
options: false, true
default: false
optional: yes
Param @@loop
description: loop video
options: false, true
default: false
optional: yes
Obs: parameters can be put in any line order

Example:

1 @video
2 @@src demo.mp4
3 @@width 640
4 @@height 360
5 @@autoplay false
6 @@loop false
7 @end_video

Output: