Project

General

Profile

Actions

Bug #96320

closed

YouTube Autoplay is not working in Chrome

Added by JAKOTA Design Group GmbH over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2021-12-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Feature #93784: Set muted attribute for videos in Textmedia if autoplay is activeClosed2021-03-19

Actions
Related to TYPO3 Core - Bug #99461: Text&Media - local video don´t autoplayClosed2023-01-05

Actions
Related to TYPO3 Core - Bug #99301: Vimeo Autoplay is not working in ChromeClosed2022-12-07

Actions
Actions #1

Updated by Gerrit Code Review over 2 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

Actions #2

Updated by Gerrit Code Review over 2 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

Actions #3

Updated by Gerrit Code Review over 2 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

Actions #4

Updated by Gerrit Code Review over 2 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

Actions #5

Updated by Georg Ringer over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 2 years ago

  • Related to Feature #93784: Set muted attribute for videos in Textmedia if autoplay is active added
Actions #7

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Ralf Hübner over 1 year ago

This works only for youtube videos, not for local hosted, i.e. mp4 videos (V10.4.34)

Actions #9

Updated by JAKOTA Design Group GmbH over 1 year 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

Actions #10

Updated by Ralf Hübner over 1 year ago

  • Related to Bug #99461: Text&Media - local video don´t autoplay added
Actions #11

Updated by Georg Ringer over 1 year ago

  • Related to Bug #99301: Vimeo Autoplay is not working in Chrome added
Actions

Also available in: Atom PDF