Activate audio in autoplay video

Hi, I am using a video on my login page, this is the code:

<video width="100%" controls autoplay loop>
     <source src="https://forosmx.s3-us-west-2.amazonaws.com/Portada+forosmx.mp4" type="video/mp4">
    </video>

Everything works perfect but I would like the audio to be activated automatically, and not have to activate it from the controls, you can see if you like: www.forosmx.com

¡Help me, please!

1 Like

I think it’s currently muted if autoplay (for etiquette reason)
https://github.com/discourse/discourse/blob/7fe536871873c911a1a5a6f006408c1579909563/app/assets/javascripts/pretty-text/addon/sanitizer.js#L129-L133

3 Likes

Thanks, you’re right, if I remove the autoplay, the audio is activated.

Is there a way to modify that or is it something by default?

1 Like

Autoplay with sound is almost undoable these days. See Autoplay Policy Changes  |  Web  |  Google Developers for a bit more background.

5 Likes

Thank you very much, I just wanted to see if it was possible, but if it can’t be done, that’s fine.

Thank you, Guys.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.