Project

General

Profile

Actions

Bug #96320

closed

YouTube Autoplay is not working in Chrome

Added by JAKOTA Design Group GmbH almost 3 years ago. Updated almost 2 years 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

Also available in: Atom PDF