audio5js icon indicating copy to clipboard operation
audio5js copied to clipboard

failed to pause playing immediately after this.play()

Open YogaLin opened this issue 7 years ago • 3 comments

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

YogaLin avatar Sep 18 '17 02:09 YogaLin

Then I'm guessing there's a problem in your code. Please make sure you debug your code properly before opening new issues.

zohararad avatar Sep 18 '17 03:09 zohararad

@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 avatar Sep 03 '20 10:09 loseleo

@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.

zohararad avatar Sep 04 '20 09:09 zohararad