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
[GStreamer] Cannot play mp4 videos in Element: Received unexpected 200 HTTP status code for range request #19687
Conversation
β¦0 HTTP status code for range request https://bugs.webkit.org/show_bug.cgi?id=221622 Reviewed by NOBODY (OOPS!). https://tools.ietf.org/id/draft-ietf-httpbis-p5-range-09.html#header.content-range If the server ignores a byte - range - spec because it is syntactically invalid, the server SHOULD treat the request as if the invalid Range header field did not exist. Normally, this means return a 200 response containing the full entity. * Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: (CachedResourceStreamingClient::responseReceived):
EWS run on current version of this PR (hash e14eade) |
I think @ntrrgc had an opinion about this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Safari doesn't support media from servers without Content-Range support. Content-Range is needed for reasonable seek support. To support media without Content-Range it's necessary to store the entire file in memory, and a seek to time can only be implemented by downloading the entire file from the start.
If you really want to support servers without Content-Range support, the following issues need to be addressed:
|
Are you sure about this? |
Yes, pretty much. For instance: https://stephenweiss.dev/safari-streaming-video |
While the Apple media frameworks WebKit uses require Content-Range support, WebKit now works around this when loading data from servers without support by synthesizing range requests. See for example https://github.com/WebKit/WebKit/blob/main/Tools/TestWebKitAPI/Tests/WebKitCocoa/MediaLoading.mm |
@eric-carlson What do you mean with synthesizing range requests? I see a |
e14eade
e14eade