Autoplay Background Sound Player

Autoplay Background Sound Player

Melinda5
Explorer
53 3 11

Hi all! 

Does anyone know a code I can add to my website to have a background sound that auto plays throughout my website like this website - https://atmos.leeroy.ca/

 

It plays automatically (unmuted) on mobile and desktop. It's important to us to make sure it auto plays unmuted on mobile especially. It also has a sound wave icon that pauses the music.

 

I'd like to do this with no app if possible, as I've tried apps and it seems it always plays muted automatically. I currently have one installed on our website (dawn) - https://www.yesugod.com/

 

Thanks, any help is appreciated!

Reply 1 (1)

Debular
New Member
25 2 3

You can try to add this code

<audio id="background-music" autoplay loop>
<source src="your-audio-file.mp3" type="audio/mpeg"> 
</audio>

If My Solution Works - Donation Appreciated!
Donate here: https://www.donationalerts.com/r/debular
My Email to Hire Me: wpholdercom@gmail.com
My Youtube: Debular Websites - https://www.youtube.com/@debularwebsites