perf(player): limit cache to 32 MiB (#309)

* Update libmpv initialization to use demuxer_max_bytes and cache_secs
instead of the deprecated cache-size property. This ensures more
predictable memory usage and better buffering behavior during
playback.
This commit is contained in:
Florian Asche authored and GitHub committed 2026-07-15 18:21:58 +02:00
1 parent 2e6c726bd8
commit 2ccb1fb597
1 file changed
+3
+3
View File
@@ -32,6 +32,9 @@ class LibMpvPlayer(AudioPlayer):
audio_display=False,
log_handler=self._on_mpv_log,
loglevel="error",
cache="yes",
demuxer_max_bytes="32MiB",
cache_secs="20",
)
if device: