FluidTYPO3\Vhs\ViewHelpers\Media\YoutubeViewHelper::initializeArguments PHP Method

initializeArguments() public method

Initialize arguments.
public initializeArguments ( ) : void
return void
    public function initializeArguments()
    {
        $this->registerArgument('videoId', 'string', 'YouTube id of the video to embed.', true);
        $this->registerArgument('width', 'integer', 'Width of the video in pixels. Defaults to 640 for 16:9 content.', false, 640);
        $this->registerArgument('height', 'integer', 'Height of the video in pixels. Defaults to 385 for 16:9 content.', false, 385);
        $this->registerArgument('autoplay', 'boolean', 'Play the video automatically on load. Defaults to FALSE.', false, false);
        $this->registerArgument('legacyCode', 'boolean', 'Whether to use the legacy flash video code.', false, false);
        $this->registerArgument('showRelated', 'boolean', 'Whether to show related videos after playing.', false, false);
        $this->registerArgument('extendedPrivacy', 'boolean', 'Whether to use cookie-less video player.', false, true);
        $this->registerArgument('hideControl', 'boolean', 'Hide video player\'s control bar.', false, false);
        $this->registerArgument('hideInfo', 'boolean', 'Hide video player\'s info bar.', false, false);
        $this->registerArgument('enableJsApi', 'boolean', 'Enable YouTube JavaScript API', false, false);
        $this->registerArgument('playlist', 'string', 'Comma seperated list of video IDs to be played.');
        $this->registerArgument('loop', 'boolean', 'Play the video in a loop.', false, false);
        $this->registerArgument('start', 'integer', 'Start playing after seconds.');
        $this->registerArgument('end', 'integer', 'Stop playing after seconds.');
        $this->registerArgument('lightTheme', 'boolean', 'Use the YouTube player\'s light theme.', false, false);
        $this->registerArgument('videoQuality', 'string', 'Set the YouTube player\'s video quality (hd1080,hd720,highres,large,medium,small).');
        $this->registerArgument('windowMode', 'string', 'Set the Window-Mode of the YouTube player (transparent,opaque). This is necessary for ' . 'z-index handling in IE10/11.', false);
    }