s3rius / rustus

TUS protocol implementation in Rust.
https://s3rius.github.io/rustus/
MIT License
158 stars 13 forks source link

Video and image is not downloading instead viewing #158

Open softpottk opened 2 months ago

softpottk commented 2 months ago

Is it possible to make image file downloadable?

For the video, is it possible to use chunking method for displaying the video to save more bandwidth? ex: 800MB of mp4 files is taking a long time to load the video cause it loads the whole 800MB files Screenshot 2024-08-29 031251

Maybe it can be downloadable instead, i guess?

If this can be add on new features?

s3rius commented 2 months ago

Image files are downloadable. They just have correct content-disposition. Also, videos are streamed, so you receive them chunk by chunk.

Also soon the project will receive a big update and maybe the download part will become much better.

softpottk commented 2 months ago

Is the chunk size 167MB? I tested on Chrome, the video can be played, but i cant forward or skip video part, and no sound. test1 On Mozilla, the video is struggle to play i dont know why, is it because content type header or what? On localhost i think it should be fine and playable. I tried video files below 100MB is fine and playable but above them, it struggles to play or not playable.

Image files are downloadable. They just have correct content-disposition. Also, videos are streamed, so you receive them chunk by chunk.

Also soon the project will receive a big update and maybe the download part will become much better.