zohararad / audio5js

The HTML5 Audio Compatibility Layer
http://zohararad.github.com/audio5js/
643 stars 128 forks source link

failed to pause playing immediately after this.play() #91

Open YogaLin opened 7 years ago

YogaLin commented 7 years ago

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

zohararad commented 7 years ago

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

loseleo commented 4 years ago

@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

zohararad commented 4 years ago

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