hello! i'm making a music player, with rodio as a back-end. i want to implement seeking as a base feature, for obvious reasons, and i found it in the source (under try_seek
) but can't find how to implement it. there's an example for it, but it doesn't work. there's no documentation on it, but there's an issue discussing it that's closed as completed. how can i use seeking? is there a feature i don't have activated? i've also tried just putting it in my code, but it says the function doesn't exist. any help would be great, thanks!
i see, is there a way to fetch it directly from the repo then?
i got it working! one last thing: is there a way to read the current position in a file?
Do you mean in a std::fs::File
or in some rodio
type? For the former (or any other Seek
implementor), you can use Seek::stream_position
.
Probably in rodio
, like a Sink
or something. Is it possible to get it from the file? Would I have to set up playback from the file differently?
Not that I see offhand, but I'm not familiar with rodio
.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.