Issue Bug Closed

#73484VimeoRenderer.php condition always true (autoplay in config)

Daniel Gorges 02/16/16, 13:57 updated 10/02/18, 11:20

Description

The Vimeorenderer checks if

if ($autoplay !== null) {
                $options['autoplay'] = $autoplay;
            }

But in $autoplay there is always a value. That´s why an autoplay function cannot be set via fluid, as shown in the example (<f:media file="{file}" width="400" height="375" additionalconfig="{autoplay: '1'}"></f:media>).

Solution:

if (!empty($autoplay)) {
                $options['autoplay'] = $autoplay;
            }

Reviews 2