Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Audio flag of timer

 
Craig Parsons
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If have a button that plays a variety of short audio clips. It is working OK except that if I click on the play button twice in a row. I expect it to play the audio two times. Instead it plays only a snipet, with the first click and for the second click it plays the entire audio clip.
This is my audio code

I would like to set a flag telling me whether the audio is still playing but am having problems finding methods that can tell me if my audio is still playing or stopped.
Can someone point me in the direction of the correct audio method?
Thanks,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!