Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dc4698316b36833706bc93aff6ad7a18cb3e4c33
https://github.com/WebKit/WebKit/commit/dc4698316b36833706bc93aff6ad7a18cb3e4c33
Author: Enrique Ocaña González <[email protected]>
Date: 2023-12-20 (Wed, 20 Dec 2023)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
Log Message:
-----------
[GStreamer] Get length from content-length header when available in chunked
content encoding
https://bugs.webkit.org/show_bug.cgi?id=266691
Reviewed by Xabier Rodriguez-Calvar.
Currently, chunked content-encoding media content transfers are considered not
to have a
defined length and are treated as live videos (no seek available, the whole
content is
downloaded in a monolithic way). However, sometimes the web server specifies a
content-length that, even if not mandatory, gives a hint about the total
length. If that
info was used, we could treat the download in a much more flexible way,
downloading only the
required pieces on demand, as the player needs them, and also enabling seek.
See: https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/1257
This patch leverages the information supplied by the content-length header when
content-encoding is set as chunked.
* Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(CachedResourceStreamingClient::responseReceived): Set length with the right
information when the circumstances are appropriate.
Canonical link: https://commits.webkit.org/272355@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes