Jump to content

background music on homepage


Recommended Posts

hello,

i include an audio file as background music to my homepage.

but no web browser starts it automatically. first the visitor has to allow permissions in web browser settings than it started.

no visitor would know that there is an audio to be played.

How can I handle that?

 

i use this code which i got it from Milos ( MyPresta ) and i use the module "  free html box module" from him.

<audio controls autoplay style="display:none">   <source src="//here.url.to.your/mp3.mp3" type="audio/mpeg">   Your browser does not support the audio element. </audio>

 

Edited by midascicero
missing details (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...