RESOLVED FIXED 263166
[GStreamer] Make downloadbuffer limits configurable
https://bugs.webkit.org/show_bug.cgi?id=263166
Summary [GStreamer] Make downloadbuffer limits configurable
Marek Vasut
Reported 2023-10-14 19:19:34 PDT
Introduce two new environment variables which control the maximum amount of buffered data by the downloadbuffer element. This is useful in case it is necessary to control buffering large files, way larger than the default downloadbuffer limits. The following new variables are added: - WPE_SHELL_MEDIA_DISK_CACHE_SIZE_BYTES ~ downloadbuffer max-size-bytes - WPE_SHELL_MEDIA_DISK_CACHE_SIZE_NSEC ~ downloadbuffer max-size-time Example HTML file, note esp. the 'preload="auto"' which is mandatory: ``` <video src="./file.mp4" autoplay muted loop preload="auto"></video> ``` Example invocation to cache up to 200 MiB per file and 500s per file: ``` $ WPE_SHELL_MEDIA_DISK_CACHE_SIZE_BYTES=268435456 \ WPE_SHELL_MEDIA_DISK_CACHE_SIZE_NSEC=500000000000 \ WEBKIT_GST_USE_PLAYBIN3=1 \ cog http://example/index.html ```
Attachments
Marek Vasut
Comment 1 2023-10-14 19:39:29 PDT
EWS
Comment 2 2023-10-15 13:08:12 PDT
Committed 269348@main (d2b242779d24): <https://commits.webkit.org/269348@main> Reviewed commits have been landed. Closing PR #19090 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-10-15 13:09:14 PDT
Note You need to log in before you can comment on or make changes to this bug.