-
I was wondering if there was a way to use this client to download music/video and at the same time being able to reproduce it/serve it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, that's the default behaviour, and primary use case for the implementation. Obtain a Reader to the file you want, and extract it however you wish and the client will prioritize data that you are blocked on (and do readahead). Typically you serve this through a HTTP endpoint, and your consuming application (such as a media player) makes requests that drive it. |
Beta Was this translation helpful? Give feedback.
Yeah it's a shame, and not easy to work around some file formats. See https://en.wikipedia.org/wiki/Progressive_download. Generally I find MP4, webp and mkv are best, sometimes you have to fiddle the headers a bit. A smart player won't care, it will seek to the end, retrieve the necessary frames, then resume at the start.