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

Gapless playback #593

Open
robbevp opened this issue Aug 31, 2021 · 0 comments
Open

Gapless playback #593

robbevp opened this issue Aug 31, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@robbevp
Copy link
Member

robbevp commented Aug 31, 2021

When playing an album that is supposed to be one long track (for example, Toman's Where Wolves Wear Wolf Wear), a user will notice a gap between the tracks.
This gap is caused by a combination of three things:

  1. Waiting for the currentTrackURLto reflect the new track
  2. Loading the track
  3. Waiting for the API to calculate the length of a track that is converted

I don't think we can/should try to fully eliminate the gap, since we'll always depend on some JS events and are dependent on the users internet connection (and the speed/internet connnection of the API). But I'd like to figure out If we can get closer to gapless playing - especially by eliminating 2 & 3.

I'm currently thinking of having a currentTrack and a nextTrack so we can start preloading the audio when the currentTrack is fully loaded - other suggestions/ideas are welcome.

@robbevp robbevp added the bug Something isn't working label Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant