This page last changed on Jan 20, 2012 by jed.wheeler@involver.com.

The youtube_video_player is used to embed a youtube video onto your page.  It will insert the video using Flash if the user has Flash installed.  On devices without Flash (such as mobile devices) it will automatically insert the video as HTML5 instead.

Attributes

Name Type Required? Value
video_id string no id of the video, used to call a video directly
autoplay boolean no sets whether the video should play by default or not
height int no sets the height of the player
width int no sets the width of the player

Examples

Basic configuration:

{% youtube_video_embed you_tube_item %}

where you_tube_item is a you tube content item

Complex example

{% youtube_video_embed video_id:"SomeID" width:"300" height:"300" autoplay:true %}

In this example the player is tied to the video whose ID is specified instead of being tied to an SML content item.

Document generated by Confluence on Feb 12, 2013 09:09