Project

General

Profile

Actions

Feature #93784

closed

Set muted attribute for videos in Textmedia if autoplay is active

Added by Wolfgang Wagner about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2021-03-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

In most current browsers, autoplay for videos (and audio files) seems to work only if the video has no audio track or is muted. (see https://www.w3schools.com/tags/att_video_autoplay.asp)

Therefore, it might make sense to set the attribute "muted" if the option "autoplay" is activated in the content element "textmedia". The generated code would then be, for example:

<video controls autoplay muted>
  <source src="movie.mp4" type="video/mp4">
</video> 

Perhaps an additional checkbox would also be possible to set the attribute "controls" or not.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #96320: YouTube Autoplay is not working in ChromeClosed2021-12-10

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

Actions
Actions

Also available in: Atom PDF