media.youtube ViewHelper <vhs: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.
videoId
- DataType
- string
- Required
- true
- 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.
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.