Bug #82044 » YouTubeRenderer.patch
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';
|
||
}
|