You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking into serving a very short and simple .mp4 video file through the uWSGI static files module. Works perfectly fine in Chrome but doesn't seem to work at all in Safari. This seems to be due to the required support for the Range-header by Apple (reference).
I stumbled upon the --honour-range option. The following output is with the option enabled.
The following shows a client requesting 0-1 bytes from the server. The server responds with Content-Length: 2 and Content-Range: bytes=0-1/7989608, which seems to be all fine and dandy. However, the content itself does not conform to the requested range:
I've been looking into serving a very short and simple .mp4 video file through the uWSGI static files module. Works perfectly fine in Chrome but doesn't seem to work at all in Safari. This seems to be due to the required support for the Range-header by Apple (reference).
I stumbled upon the
--honour-range
option. The following output is with the option enabled.The following shows a client requesting 0-1 bytes from the server. The server responds with
Content-Length: 2
andContent-Range: bytes=0-1/7989608
, which seems to be all fine and dandy. However, the content itself does not conform to the requested range:After digging around in the source code I found this function to be at least mildly interesting: https://github.com/unbit/uwsgi/blob/master/core/protocol.c#L231
My C skills aren't to be written home about, so I'd love it if someone could have a look at this and maybe create a pull request.
The text was updated successfully, but these errors were encountered: