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

Intelligent streaming #27

Open
3 tasks
dvdsk opened this issue Feb 1, 2021 · 0 comments
Open
3 tasks

Intelligent streaming #27

dvdsk opened this issue Feb 1, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@dvdsk
Copy link
Owner

dvdsk commented Feb 1, 2021

Currently streaming just downloads the file from the start and starts playback as soon as it has enough data. This has the following problems:

  • seeking to the end of a podcast takes almost as long as downloading the podcast this makes resuming a long podcast (after having closed the app) very slow.
  • we waste the users data
  • we waste the users ram

To fix this:

  • make the http stream seekable.
  • implement a data structure for keeping already downloaded bits
  • keep downloading ahead slightly to prevent stuttering

possible pain points:

  • rodio needs the seekable object in its own thread however we do not want to put the download on that thread
  • how to communicate downloaded bits
@dvdsk dvdsk added the enhancement New feature or request label Feb 1, 2021
@dvdsk dvdsk added this to the Nice app milestone Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant