Issue Feature Closed

#93784Set muted attribute for videos in Textmedia if autoplay is active

Wolfgang Wagner 03/19/21, 12:54 updated 01/07/22, 07:44

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.