Open lpetrov opened 8 years ago
Hi, thanks for that investigation. I will check this soon.
I'd also added an option called 'allow_cache', which would allow developers to disable the 'no cache' functionality. By default, the cache killer (no_cache) would be enabled (as it is right now).
Any progress with this?
Hi, @lpetrov, sorry, had no time to work on it in 2017. But i promise i will review everything regarding ion.sound in the beginning of 2018!
Happy New Year!
Basically, this one is really, really, really hard to replicate. I'd to reload tons of times to try to replicate it and it happens randomly. So, the thing is that, when a sound had been manually .stop()'ped, browsers as Firefox, can eventually trigger the .ended callback few moments after the .stop() call, which would trigger the sound to loop again. This is why, I'd added this small additional check that should solve potential race conditions as this one :)