Commit b56a9c7
committed
[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: #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@main1 parent a7a71c4 commit b56a9c7
1 file changed
Lines changed: 9 additions & 0 deletions
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1014 | 1023 | | |
1015 | 1024 | | |
1016 | 1025 | | |
| |||
0 commit comments