Best Answer

Muted Autoplay for HTML Embedded Video on Homepage

  • 3 February 2022
  • 2 replies
  • 734 views

I’ve been trying to get a video that we’ve embedded onto a homepage to autoplay muted when the pages loads. I’ve been trying the code I’ve pasted below (“#” is the link for the .mp4 file), but no luck. Any tips would be much appreciated!

<video width="960" height="540" controls="autoplay muted"><source src="#" type="video/mp4">
Your browser does not support the video tag.
</source></video>

 

icon

Best answer by JDigital 3 February 2022, 18:24

View original

2 replies

Userlevel 3

The HTML/WYSIWYG Widget will strip out any autoplay muted controls you add in the code as you probably have noticed. I suggest creating a webpage hosted on your own webserver with autoplay muted ,etc.. and pull that in with the iFrame Widget instead. It will work fantastic that way.

Thanks @JDigital, makes sense, this’ll be exactly what I need!

Reply