accentor / web

Web frontend for the Accentor music server
Other
4 stars 0 forks source link

Retry playing audio tracks when loading fails #940

Closed robbevp closed 1 year ago

robbevp commented 1 year ago

Fix #909

With these changes, the player will try to load an audio track three times before giving up and going to the next track.

I wasn't yet able to try this in a real life scenario (where such an error might occur). I'll try and use this branch over the next few days, to see if everything works as expected. We might want to wait for these tests before merging.

robbevp commented 1 year ago

Would it make sense to try to delay the retry? (If it's not too complex.) Network issues are usually there for a longer period of time, so immediately retrying probably won't help?

I've added a simple linear delay.

I've been using the branch (locally build) for the last few days, and have not noticed/experienced any issues, so this should be good to go