Issue Bug Closed

#99301Vimeo Autoplay is not working in Chrome

JAKOTA Design Group GmbH 12/07/22, 11:55 updated 02/08/23, 16:04

Description

Hi,

This is a follow up of:

https://forge.typo3.org/issues/96320

Chrome does not allow autoplay of 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/VimeoRenderer.php

Line 139

Change:

if (!empty($options[‘autoplay’])) {
$urlParams[] = ‘autoplay=1’;
}

To:

if (!empty($options[‘autoplay’])) {
$urlParams[] = ‘autoplay=1’;
$urlParams[] = ‘mute=1’;
}

Also consider changing this in the VideoTagRenderer.php

Thanks

Reviews 2