function isPlaying(audelem) { return !audelem.paused; }
The Audio tag has a paused
property. If it is not paused, then it’s playing.
More Related Contents:
- HTML 5 video or audio playlist
- Node.js can’t create Blobs?
- How to prevent “The play() request was interrupted by a call to pause()” error?
- Why don’t audio and video events bubble?
- How to mute all sound in a page with JS?
- How to play a notification sound on websites?
- html5 display audio currentTime
- HTML 5 – Play file at certain time point
- HTML5 playback with fade in and fade out
- gapless looping audio html5
- How to capture generated audio from window.speechSynthesis.speak() call?
- How to play only the audio of a Youtube video using HTML 5?
- How to toggle audio play() pause() with one button or link?
- HTML5 audio playlist – how to play a second audio file after the first has ended?
- How to check if HTML5 audio has reached different errors
- Javascript make audio blob
- How to set the loudness of HTML5 audio?
- Generating sound on the fly with javascript/html5
- Get the longest text in HTML document using Jquery or javascript
- Why can’t I call a function named clear from an onclick attribute?
- How to move an element into another element?
- JavaScript Form Submit – Confirm or Cancel Submission Dialog Box
- Transfer data from one HTML file to another
- Which browsers support ?
- jQuery: Get selected element tag name
- How to change CSS :root color variables in JavaScript
- How to clear cache of service worker?
- Changing button text onclick
- Save a pre element as PDF with CSS
- Auto-Full Screen for a Youtube embed