audio5js
audio5js copied to clipboard
failed to pause playing immediately after this.play()
I wrote 'this.pause()' after one line code in audioReady function, the audio continue playing.
this.play();
this.pause();
I also try this:
this.play()
setTimeout(this.pause(), 3000)
And it didn't work too
Then I'm guessing there's a problem in your code. Please make sure you debug your code properly before opening new issues.
@zohararad I also have this problem this.play(); this.pause(); can't work
this.play() setTimeout(this.pause, 3000) this is work fine, note @YogaLin ,there is some wrong around this.pause
@loseleo thanks for reporting this. I no longer maintain this repo - HMTL5 Audio is now widely supported on all browsers and offers a consistent and superior interface for playing audio in the browser.