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 in pixels |
|
| height in pixels |
|
| aspect ratio as width to height (i.e. 0.5 means video is twice as tall as wide) |
|
| mute video by default |
|
| play video when page loads |
|
| display controls for the video |
|
| loop video |
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.
You can add a caption to a video by adding a special block around the video.
Insert a video which plays in a loop to automatically restart video after it ends. Additionally, you can specify: muted, autoplay and controls parameters.