[BUGFIX] YouTubeRenderer "controls" option 50/53650/9
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 13:42:50 +0000 (15:42 +0200)
commitf6c2b2e55f80a8193b15f294ae974d2832ba900d
tree2965e549cabad985ba7c090712800f587472e9a2
parente2584b9af255612bff444099d0699e5f0aeafdb7
[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/53650
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Resource/Rendering/YouTubeRenderer.php
typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php