Package

ViewHelpers

ViewHelper Documentation

v:media.youtube

Renders HTML code to embed a video from YouTube.

Arguments

additionalAttributes anySimpleType

Additional tag attributes. They will be added directly to the resulting HTML tag.

data anySimpleType

Additional data-* attributes. They will each be added with a "data-" prefix.

class string

CSS class(es) for this element

dir string

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id string

Unique (in this file) identifier for this HTML element.

lang string

Language for this element. Use short names specified in RFC 1766

style string

Individual CSS styles for this element

title string

Tooltip text of element

accesskey string

Keyboard shortcut to access this element

tabindex integer

Specifies the tab order of this element

onclick string

JavaScript evaluated for the onclick event

videoId string

YouTube id of the video to embed.

width integer

Width of the video in pixels. Defaults to 640 for 16:9 content.

height integer

Height of the video in pixels. Defaults to 385 for 16:9 content.

autoplay boolean

Play the video automatically on load. Defaults to FALSE.

legacyCode boolean

Whether to use the legacy flash video code.

showRelated boolean

Whether to show related videos after playing.

extendedPrivacy boolean

Whether to use cookie-less video player.

hideControl boolean

Hide video player's control bar.

hideInfo boolean

Hide video player's info bar.

enableJsApi boolean

Enable YouTube JavaScript API

playlist string

Comma seperated list of video IDs to be played.

loop boolean

Play the video in a loop.

start integer

Start playing after seconds.

end integer

Stop playing after seconds.

lightTheme boolean

Use the YouTube player's light theme.

videoQuality string

Set the YouTube player's video quality (hd1080,hd720,highres,large,medium,small).

windowMode string

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

ViewHelper Resources

Schema Resources