Reputation: 1834
I'm doing a project in HTML 5, targeting android tablets. There are some jquery animations which are triggered using audio timeupdate delegate.
It works fine but shows some loading issues while navigating through pages. It wont load sometimes. I added a loader in $(document).ready(); method and will be removed in canplaythrough delegate.
Sometimes loader wont disappear since the canplaythrough is not called.
Issue cannot be find frequently. Why audio is not properly loaded everytime? Is this because of the browser caching?
I'm testing it in both Android default and chrome browsers.
Can anyone tell me why this is happening.
Any help would be appreciated.
Upvotes: 1
Views: 435
Reputation: 1834
I found the "abort" method is called during the "error loading" case, But not the "error" method. And then I checked the "readyState" values. It shows "0"( HAVE_NOTHING) value. I tried to refresh the page in such cases. It seems working but it'll be a bad practice as the user can see the browser is trying refresh the page several times. Is it possible to reload audio object.
Upvotes: 1