FluidTYPO3\Vhs\ViewHelpers\Media\VideoViewHelper::initializeArguments PHP Méthode

initializeArguments() public méthode

Initialize arguments.
public initializeArguments ( ) : void
Résultat void
    public function initializeArguments()
    {
        parent::initializeArguments();
        $this->registerUniversalTagAttributes();
        $this->registerArgument('width', 'integer', 'Sets the width of the video player in pixels.', true);
        $this->registerArgument('height', 'integer', 'Sets the height of the video player in pixels.', true);
        $this->registerArgument('autoplay', 'boolean', 'Specifies that the video will start playing as soon as it is ready.', false, false);
        $this->registerArgument('controls', 'boolean', 'Specifies that video controls should be displayed (such as a play/pause button etc).', false, false);
        $this->registerArgument('loop', 'boolean', 'Specifies that the video will start over again, every time it is finished.', false, false);
        $this->registerArgument('muted', 'boolean', 'Specifies that the audio output of the video should be muted.', false, false);
        $this->registerArgument('poster', 'string', 'Specifies an image to be shown while the video is downloading, or until the user hits the play button.');
        $this->registerArgument('preload', 'string', 'Specifies if and how the author thinks the video should be loaded when the page loads. Can be ' . '"auto", "metadata" or "none".', false, 'auto');
        $this->registerArgument('unsupported', 'string', 'Add a message for old browsers like Internet Explorer 9 without video support.');
    }