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
Videos with small file size won't load from local file system #2854
Comments
To add a little more info on the issue.. seems like the assets server is assuming 400kb is the minimum size for a video file or something, and thats whats causing the problems Looking at the source I see 2 files with if range.length > file_size / 3 {
// max size sent (400ko / request)
// as it's local file system we can afford to read more often
real_length = 1024 * 400;
} file 5.mp4 contains 75990 bytes and the server is replying on first request Content-Length: 409600 // 400kb?
Content-Range: bytes 0-409599/75990 // 0 to 400kb? - 1 / 74kb (file size)
Content-Type: video/mp4 |
I have the same issue but also noticed that even longer videos (e.g. ~2 minutes long) suddenly stop loading at 9-10 seconds. The video progress bar shows that there is more but the player is unable to play the video after ~9 seconds. |
@michelvocks if #3039 doesn't fix it, please open another issue. |
@lucasfernog #3039 fixed it. Thanks a lot! |
Describe the bug
Videos with small file size won't load from local file system
To Reproduce
I encoded the same video with different sizes from 18mb to 75kb and the two smallest ones won't load with the html5 video player
https://drive.google.com/u/0/uc?id=1DooRCgDgyFh45kbfl0XohAcErNVfwQ6r&export=download
It seems to be related to the headers from the local assets server
When I try to load for example the file '5.mp4' (74kb) from the local disk, using something like
the server replies with
and the video gets stuck
but when I load the same file from a nginx server to the same tauri app the reply is
and everything works fine
Platform and Versions (required):
The text was updated successfully, but these errors were encountered: