-
Notifications
You must be signed in to change notification settings - Fork 231
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
Cannot use symphonia ReadOnlySource due to no seek support #580
Comments
Also, this is might be related to ongoing seek behavior changes i.e. #176 ? |
That's actually a different kind of seek :) The problem is your MediaSourceStream does not implement the right IO traits. Instead of fixing that you might be better of using something like: https://github.com/aschey/stream-download-rs If you want to do this yourself take a look at what the decoder needs. Basically you'll have to write a struct that wraps the reqwest output and implements the Read and Seek traits while it is also Send and Sync. Thats not easy as you want to download while playing so you need multiple threads. Ive been working on something like this myself but its not fully done yet |
@dvdsk thanks for the quick response! Would I've bumped into the recommendation in #439 but |
I recommend you read through https://tokio.rs/tokio/topics/bridging. Almost all of rusts io-libs ( |
Appreciate the clarification, indeed |
I'm trying to run a basic scenario of playing an MP3 stream from network by using a
ReadOnlySource
fromsymphonia
.This is my current usage:
While this does compile, it fails with:
What would be the right way to use a non-seeking source? Ideally would like to use any available pre-existing traits from symphonia/rodio, but can also implement any custom traits as necessary.
The text was updated successfully, but these errors were encountered: