-
Notifications
You must be signed in to change notification settings - Fork 152
Media Server improperly configure for Safari (therefore also Tauri on MacOS) due to RANGE 0-1 request mishandling #501
Description
The integrated media server is a great feature! I was curious to see if I could add a video player directly inside rqbit. Doing so, I ran into a very frustrating issue where a simple html
I investigated the problem, checked for CSP problems etc but found this problem:
Which links to a reference page:
When I try to verify as they suggest if querying byte ranges 0-1 indeed returns the correct byte, the media server sends the entire file. This is the exact misconfiguration as described in the reference:
% curl --range 0-1 http://127.0.0.1:3030/torrents/1/stream/1 -o /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 263M 0 263M 0 0 536M 0 --:--:-- --:--:-- --:--:-- 536M
Consequences: videos are not streamable via Safari (not that important) -> they are not streamable inside a Tauri webview on mac (more annoying)