- YouTube Embed Plugin Test
- (English) captions automatically enabled
- Video to the right text to the left test
- Used ‘Gutenberg’ so I could have blocks -> Columns (50/50)
Instructions for YouTube Embed Tool –
e.g. [ youtube width=300 height=200]Z_sCoHGIpU0[/ youtube]
Which options are available depends upon the users’s set-up (for example, whether they have Flash installed or not). You can specify any of the parameters but they may be ignored. Please see the Profile screen in Administration for further details on any restrictions which may exist.
annotation – yes or no, this determines if annotations are shown
autoplay – yes or no, should the video automatically start playing?
cc – yes or no, decided whether closed captions are displayed. If you don’t specify anything then the user’s default will be used.
cc_lang – Closed captions language. Select a ISO 639-1 two-letter language code or leave blank for the default
color – white or red, the color of the progress bar (see the FAQ about having a white progress bar with the light theme)
controls – 0, 1 or 2, this decides whether the controls should display and when the Flash will load. A value of 0 will not show the controls but 1 or 2 will. A value of 2 will load Flash once the user initiates playback – otherwise it’s loaded straight away.
disablekb – yes or no, disable keyboard controls
fullscreen – yes or no, this will add the fullscreen button to the toolbar
height – the video height, in pixels
language – The interface language. The parameter value is an ISO 639-1 two-letter language code or a fully specified locale. Leave blank for the default
list – if you’ve specified your own list, use this to select the way the videos should be output. Should be random (display videos in a random order), single (show just one video, randomly picked from the list) or order (show each video in the original order – this is the default)
loop – yes or no, whether to start the video again once it ends
modest – reduce the branding on the video
playsinline – whether videos play inline or fullscreen in an HTML5 player on iOS.
profile – specify a different default profile (see section on Profiles for further details)
ratio – allows you to define a window ratio – specify just a height or width and the ratio will calculate the missing dimension. Uses the format x:x, e.g. 4:3, 16:9
related – yes or no, show related videos
responsive – whether to use responsive output or not. When switched on the video will resize when your site does (i.e. responsive). If a video width is supplied this will be the maximum width, otherwise full width will be assumed. Height is ignored and will be worked out automatically.
search – yes or no, create a playlist based on a search word. The search word should be specified instead of a video ID. See “Automatically Generate Playlists” option for more details
start – a number of seconds from where to start the video playing
stop – this stops the video at a specific time, given in seconds
style – apply CSS elements directly to the video output
template – specify a template (see section on Templates for further details)
user – yes or no, create a playlist based on a user’s uploads. The search word should be specified instead of a video ID. See “Automatically Generate Playlists” option for more details
width – the video width, in pixels
Templates
Both in the profile and as a parameter you can specify a template. This allows you to define any CSS that you wish to “wrap” around the YouTube output.
The template consists simply of your choice of HTML but with %video% where you wish the video to appear.
e.g.
For reasons of security, only specific HTML tags are valid – these are a, br, div, img, p span and strong. If there are any others that you’d like to have added, please let me know via the forum.
