Issues with range response #3254
Unanswered
ShovelJockey
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I have a cursed mp4 handler ported from Go: https://codeberg.org/SentryShot/sentryshot/src/commit/3ae62eb2af4452875b65f330a788e1a0818dd975/src/web/serve_content.rs#L37 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have created a file server for mp4 files, initially for clients to download or to stream and play (the entire file at once) with vlc.
It seemed more efficient to use range responses as supported by FileStream from axum-extra as I believe this should allow seeking backwards or forwards through the video with it raising an error (as it currently does when streaming the file in its entirety) but currently testing a ranged response seems to be slower to start with ffplay or vlc compared to a full download and crashes when trying to move backwards or forwards through the video.
Currently the route to handle the range response stream copying from some examples looks like:
The output from vlc on the client side is:
Would really appreciate any pointers for what I am missing here.
axum version
0.8.1
Beta Was this translation helpful? Give feedback.
All reactions