stk:video.embed-youtube(template)

This template lets you embed a Youtube video.

element()stk:video.embed-youtube
  1. xs:stringvideo-id
  2. xs:integerwidth
  3. xs:integerheight
  4. xs:integerregion-width
  5. xs:booleanthumbnail-only

Examples

Input

<xsl:call-template name="stk:video.embed-youtube">
    <xsl:with-param name="video-id" select="'INscMGmhmX4'"/>
</xsl:call-template>

Result

<iframe class="youtube video" src="//www.youtube.com/embed/INscMGmhmX4?enablejsapi=1" id="youtube-video-INscMGmhmX4">
  
</iframe>

Parameters

video-id
The Youtube video ID. Can be both pure ID, embed URL or share URL.
Type
xs:string
width
Type
xs:integer
Default
560
height
Type
xs:integer
Default
315
region-width
Type
xs:integer
Default
$stk:region-width
thumbnail-only
Type
xs:boolean
Default
false()