Play Background music on website in ASP.Net

Last Reply one year ago By Mudassar

Posted one year ago

I want to add music when website main page open music will start and continuously play in background

??

 

thanks

please reply possible solution.

You are viewing reply posted by: Mudassar one year ago.
Posted one year ago Modified on one year ago

Also you can use HTML5 Audio Player and hide it.

<audio style= "display:none" controls="controls" autobuffer = "true" autoplay="true">
 <source src="https://www.aspsnippets.com/demos/2429/File.ashx?Id=1" type="audio/mpeg" />
 <p>This content is displayed by browsers that don't recognize the audio element.</p>
</audio>

Demo