Project

General

Profile

Actions

Bug #82044

closed

YouTubeRenderer ignores "controls" option

Added by Česlav Przywara over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2017-08-04
Due date:
% Done:

100%

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

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.


Files

YouTubeRenderer.patch (853 Bytes) YouTubeRenderer.patch Česlav Przywara, 2017-08-04 13:29
Actions

Also available in: Atom PDF