[BUGFIX] YouTubeRenderer "controls" option 09/53709/2
authorČeslav Przywara <ceslav@przywara.cz>
Mon, 7 Aug 2017 09:40:11 +0000 (11:40 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 15 Aug 2017 14:07:09 +0000 (16:07 +0200)
commite60db69d10731020667670068fa295467dcef44f
tree0c3a46e11e44478199946458bdbf5ca9ea3b011b
parent654ff849ebf27864f504a7a9fa2c9f512e357b7c
[BUGFIX] YouTubeRenderer "controls" option

The "controls" parameter appended to YouTube embed URL is either set to
value provided in $options array or to default backwards-compatible
value (controls=2).

Specifically, if controls option is set to 0, the controls parameter
must be present in URL, because default value for it is 1.

Fix is applied to related unit test too.

Resolves: #82044
Releases: master, 8.7, 7.6
Change-Id: I1519b5f515f85eb473f590762171b250d26f32c4
Reviewed-on: https://review.typo3.org/53708
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-on: https://review.typo3.org/53709
typo3/sysext/core/Classes/Resource/Rendering/YouTubeRenderer.php
typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php