Videos

You can insert videos from YouTube on your pages using \includemedia command.

You can provide additional parameters after the video address using the following format:

Parameter

Type

Description

width

integer

width in pixels

height

integer

height in pixels

ratio

double

aspect ratio as width to height (i.e. 0.5 means video is twice as tall as wide)

muted

boolean

mute video by default

autoplay

boolean

play video when page loads

controls

boolean

display controls for the video

loop

boolean

loop video

Size

You can specify the size of the video using an additional option after the video address. You can either explicitly set width and height parameters or specify video aspect ratio using ratio, so we can correctly calculate video height based on width.

Caption

You can add a caption to a video by adding a special block around the video.

Looping

Insert a video which plays in a loop to automatically restart video after it ends. Additionally, you can specify: muted, autoplay and controls parameters.