Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no "load" event fired some times #986

Closed
Megabyteceer opened this issue Jul 3, 2018 · 0 comments
Closed

no "load" event fired some times #986

Megabyteceer opened this issue Jul 3, 2018 · 0 comments

Comments

@Megabyteceer
Copy link
Contributor

Chrome 67.0.3396.99.
howler.js v2.0.13

I loading 4 vaw files and show preloader bar. About one of 10 page reloads one of sounds does not fire "load" event and status() always returns "loading" for this sound even tho, all http requests for sounds finished successful.
Also if i block request for any of sound file, it is no "loaderror" event too.

goldfire added a commit that referenced this issue Jul 12, 2018
Fix for issue #986 handling decodeAudioData events in latest chrome
ringcrl pushed a commit to ringcrl/howler.js that referenced this issue Apr 21, 2019
I noticed than decodeAudioData of AudioContext has only one parameter and sometime callback passed in to decodeAudioData dont fire at all. I added checking to handle events via promise syntax in modern browsers.
For me this fix solved problem of frozen preloader which happened randomly.
ringcrl pushed a commit to ringcrl/howler.js that referenced this issue Apr 21, 2019
Fix for issue goldfire#986 handling decodeAudioData events in latest chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants