Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Retry failed preloads #16

Closed
derat opened this issue Apr 22, 2021 · 0 comments
Closed

Retry failed preloads #16

derat opened this issue Apr 22, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@derat
Copy link
Owner

derat commented Apr 22, 2021

The web player seems to get stuck if it fails to preload a track due to e.g. a network hiccup:

Preloading 5745869450117120 (...)
song:1 Failed to load resource: net::ERR_INTERNET_DISCONNECTED
music-player.js:642 Starting preloaded 5745869450117120 (...)
music-player.js:941 Scaling amplitude by 0.404
music-player.js:662 Playing
.../:1 Uncaught (in promise) DOMException: The element has no supported sources.

Clicking the play button didn't reload the track, but clicking prev and then next worked.

Maybe I can catch the error and retry? Hopefully it's possible to repro this by disabling wifi just before preloading and then enabling it after it fails.

@derat derat added the bug Something isn't working label Apr 22, 2021
@derat derat self-assigned this Apr 22, 2021
@derat derat closed this as completed in de01938 May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant