0
var myMusic = document.getElementById("music");
function play() {
myMusic.play();
}
play()

I tried like this but i can't find how can i control it

If the audio is playing don't go the play function

Is anybody knows it?

Thank you...

mko1995
  • 15
  • 3
  • https://stackoverflow.com/questions/9437228/html5-check-if-audio-is-playing – Madhawa Priyashantha Dec 27 '20 at 15:54
  • 1
    Does this answer your question? [How to tell if a – The Otterlord Dec 27 '20 at 15:57
  • Does this answer your question? [HTML5 check if audio is playing?](https://stackoverflow.com/questions/9437228/html5-check-if-audio-is-playing) – Pouria Hemi Dec 28 '20 at 06:00

0 Answers0