Project

General

Profile

Bug #82044 » YouTubeRenderer.patch

Česlav Przywara, 2017-08-04 13:29

View differences:

typo3/sysext/core/Classes/Resource/Rendering/YouTubeRenderer.php
$videoId = $this->getOnlineMediaHelper($file)->getOnlineMediaId($orgFile);
$urlParams = ['autohide=1'];
if (!isset($options['controls']) || !empty($options['controls'])) {
$urlParams[] = 'controls=2';
}
$urlParams[] = 'controls=' . (isset($options['controls']) ? (int)$options['controls'] : '2');
if (!empty($options['autoplay'])) {
$urlParams[] = 'autoplay=1';
}
    (1-1/1)