Project

General

Profile

Actions

Bug #73484

closed

VimeoRenderer.php condition always true (autoplay in config)

Added by Daniel Gorges about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-02-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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'}" />).

Solution:

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


Files

videorenderer.diff (1.27 KB) videorenderer.diff Daniel Gorges, 2016-02-16 14:18
Actions

Also available in: Atom PDF