Feature #93784

Set muted attribute for videos in Textmedia if autoplay is active

Added by Wolfgang Wagner 7 months ago. Updated 6 months ago.

Status:
New
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.

Also available in: Atom PDF