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

Copying over files from external locations dynamically : #807

Closed
bmschwa opened this issue Nov 23, 2020 · 3 comments
Closed

Copying over files from external locations dynamically : #807

bmschwa opened this issue Nov 23, 2020 · 3 comments

Comments

@bmschwa
Copy link
Contributor

bmschwa commented Nov 23, 2020

Hello,

I keep most of my music at aws s3. Multiple folders ([#760]) would be helpful, but I've noticed that playing from external sources is really sluggish. The performance would be much better if the entire album could be copied over to the local music folder before, or while, the album starts to play. That way the local storage could be reserved for things that are playing and an index of external resources available to draw on at the time you want to play some of it.

Thanks,

@paulijar
Copy link
Collaborator

I guess you are having basically the same problem as discussed in #776. So the problem is that there is always a delay of some (tens of) seconds when changing the playing song, before the music starts playing. What presumably happens behind the scenes, is that first the ownCloud/Nextcloud server loads the whole file from the s3 backend, and only then it starts serving it to the web browser.

Now, if we could start serving the file from your own server before it has been fully downloaded from s3, then it would probably already improve the situation a lot. This might be possible, but I would need to experiment with this a bit before I can say anything definite.

If going with the preloading/caching strategy suggested in the opening post, then I believe that preloading the whole album would be overkill. In most cases, it probably would be sufficient to preload the next upcoming track in the play order while one track is playing. This would also work when playing in some other order than the album order (say, you were shuffle playing over your whole library).

@bmschwa
Copy link
Contributor Author

bmschwa commented Dec 8, 2020

Thanks much for getting back to me, and for all your work on this project, @paulijar !

This request request should probably be marked as a duplicate of #776.

There are definitely some optimizations to be made in the area of external storage... I haven't had luck even indexing my s3 albums so that they all show up. Then playing them directly from s3 caused me to enter this issue.

@bmschwa bmschwa closed this as completed Dec 8, 2020
@bmschwa
Copy link
Contributor Author

bmschwa commented Dec 8, 2020

duplicate of #776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants