AutoPlay Audio On Page Load using Code Behind in C# and VB.Net

Last Reply one month ago By pandeyism

Posted one month ago

I am using html 5 audio player i want to assign the src to it on page load and click on play button from page behind but its not working pls advice.

 <audio id="buzz" runat="server"   type="audio/mp3"/>

 Code

buzz.Src = "../images/filling-your-inbox.mp3";
buzz.Style.Add("autoPlay", "autoPlay");

 

This question does not have replies that have been liked.