The video
include allows you to embed video onto a page.
YouTube
Above, we set the aspect ratio to 1:1 because the video is square; this parameter is optional though, with the default being 4:3 at 400 x 300.
YouTube playlists
The video
include automatically detects when you pass a YouTube playlist ID
(they always start with PL
), and embeds the playlist accordingly.
Vimeo
We use the width
parameter to make the above video from Vimeo a bit wider than the default of 400.
SWITCHtube
We override this SWITCHtube video’s height to be a specific value. This is useful if you need to align a series of videos in a row.