What's the javascript api for checking if an html5 audio element is currently playing?
function isPlaying(audelem) { return !audelem.paused; }
The Audio tag has a paused property. If it is not paused, then it's playing.
paused
2.1m questions
2.1m answers
60 comments
57.0k users