Issue Bug Closed

#82044YouTubeRenderer ignores "controls" option

Česlav Przywara 08/04/17, 13:32 updated 10/02/18, 10:59

Description

Hi,

I noticed that TYPO3\CMS\Core\Resource\Rendering\YouTubeRenderer almost completely ignores value of “controls” option:

if (!isset($options['controls']) || !empty($options['controls'])) {
    $urlParams[] = 'controls=2';
}

With $options['controls'] = '0' or similar empty value, the controls attribute is not added to embed URL, but then YouTube defaults to controls=1, what is most likely not what you want. See: https://developers.google.com/youtube/player_parameters?hl=en#controls

I have noticed this in TYPO3 7, but patch is based on trunk.

Reviews 3