Bug #96320
closedYouTube Autoplay is not working in Chrome
100%
Description
Hi,
Chrome does not allow autoplay of YouTube videos if mute option is not set.
https://developer.chrome.com/blog/autoplay/
This can be fixed by providing the mute option if autoplay is set.
/sysext/core/Classes/Resource/Rendering/YouTubeRenderer.php
Line 149
Change:
if (!empty($options['autoplay'])) {
$urlParams[] = 'autoplay=1';
}
To:
if (!empty($options['autoplay'])) {
$urlParams[] = 'autoplay=1';
$urlParams[] = 'mute=1';
}
Thanks
Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72621
Updated by Gerrit Code Review almost 3 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72621
Updated by Gerrit Code Review almost 3 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72845
Updated by Gerrit Code Review almost 3 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72846
Updated by Georg Ringer almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset fc31824a8dcf53c167f0a8e2b4fb15617f92102b.
Updated by Benni Mack almost 3 years ago
- Related to Feature #93784: Set muted attribute for videos in Textmedia if autoplay is active added
Updated by Ralf Hübner almost 2 years ago
This works only for youtube videos, not for local hosted, i.e. mp4 videos (V10.4.34)
Updated by JAKOTA Design Group GmbH almost 2 years ago
Because this issue only is about the YouTubeRenderer
I've opened a new one for the VimeoRenderer where I also hint on the VideoTagRenderer
https://forge.typo3.org/issues/99301
Please consider commenting on that one to raise awareness.
Thanks
Updated by Ralf Hübner almost 2 years ago
- Related to Bug #99461: Text&Media - local video don´t autoplay added
Updated by Georg Ringer almost 2 years ago
- Related to Bug #99301: Vimeo Autoplay is not working in Chrome added