Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been at this for several days now and am very frustrated.

I have the HTML5 audio tag working just fine on my page. It plays the audio.

On that page, though, as it updates itself, I want to play the audio based on a condition, and only play it once unless the condition that plays it gets reset. The page remains on the browser and is refreshed every few seconds or so.

Unfortunately, I am only able to either loop the audio, or get it to play once, but never again.

Any examples would be appreciated.

Thanks!
Posted
Comments
Ahmed Mandur 27-Sep-14 4:01am    
Hi,
Please post your code to be able to help you
Thanks,

1 solution

I think You need to add attributer -
HTML
Controls
in your Audio tag

<audio controls>
<source src="abc.mp3" type="audio/mp3" />
</audio>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900