media.youtube

Renders HTML code to embed a video from YouTube.

Arguments

additionalAttributes

DataType
mixed
Required
false
Description
Additional tag attributes. They will be added directly to the resulting HTML tag.

data

DataType
mixed
Required
false
Description
Additional data-* attributes. They will each be added with a “data-” prefix.

aria

DataType
mixed
Required
false
Description
Additional aria-* attributes. They will each be added with a “aria-” prefix.

class

DataType
string
Required
false
Description
CSS class(es) for this element

dir

DataType
string
Required
false
Description
Text direction for this HTML element. Allowed strings: “ltr” (left to right), “rtl” (right to left)

id

DataType
string
Required
false
Description
Unique (in this file) identifier for this HTML element.

lang

DataType
string
Required
false
Description
Language for this element. Use short names specified in RFC 1766

style

DataType
string
Required
false
Description
Individual CSS styles for this element

title

DataType
string
Required
false
Description
Tooltip text of element

accesskey

DataType
string
Required
false
Description
Keyboard shortcut to access this element

tabindex

DataType
integer
Required
false
Description
Specifies the tab order of this element

onclick

DataType
string
Required
false
Description
JavaScript evaluated for the onclick event

videoId

DataType
string
Required
false
Description
YouTube id of the video to embed.

width

DataType
integer
Default
640
Required
false
Description
Width of the video in pixels. Defaults to 640 for 16:9 content.

height

DataType
integer
Default
385
Required
false
Description
Height of the video in pixels. Defaults to 385 for 16:9 content.

autoplay

DataType
boolean
Required
false
Description
Play the video automatically on load. Defaults to FALSE.

legacyCode

DataType
boolean
Required
false
Description
Whether to use the legacy flash video code.

showRelated

DataType
boolean
Required
false
Description
Whether to show related videos after playing.

extendedPrivacy

DataType
boolean
Default
true
Required
false
Description
Whether to use cookie-less video player.

hideControl

DataType
boolean
Required
false
Description
Hide video player’s control bar.

hideInfo

DataType
boolean
Required
false
Description
Hide video player’s info bar.

enableJsApi

DataType
boolean
Required
false
Description
Enable YouTube JavaScript API

playlist

DataType
string
Required
false
Description
Comma seperated list of video IDs to be played.

loop

DataType
boolean
Required
false
Description
Play the video in a loop.

start

DataType
integer
Required
false
Description
Start playing after seconds.

end

DataType
integer
Required
false
Description
Stop playing after seconds.

lightTheme

DataType
boolean
Required
false
Description
Use the YouTube player’s light theme.

videoQuality

DataType
string
Required
false
Description
Set the YouTube player’s video quality (hd1080,hd720,highres,large,medium,small).

windowMode

DataType
string
Required
false
Description
Set the Window-Mode of the YouTube player (transparent,opaque). This is necessary for z-index handling in IE10/11.