feat(exoplayer): let the read-ahead buffer depth be chosen instead of fixed at 50s
ExoPlayer's DefaultLoadControl was built with hard-coded durations picked from one memory tier, so read-ahead stopped at 50s on any device reporting 2GB or less free, with no way to raise it. On hardware where mpv cannot render at all that ceiling is the whole buffer budget. Playback Buffer offers Auto, Large and Extra Large. The durations are taken from jellyfin-androidtv and jellyfin-android so the same words mean the same thing across Jellyfin clients; Auto keeps the memory-tiered values that shipped. Named tiers rather than a duration because a duration would be a promise the load control cannot keep: prioritizeTimeOverSizeThresholds is disabled, so targetBufferBytes stops the loader even below minBufferMs and the byte cap binds first above roughly 23 Mbit/s. The tier crosses the method channel as a string and resolves in the core, where an unrecognised name falls back to Auto. LoadControlPolicy clamps the resulting pair: media3 validates the ordering with Guava Preconditions, an unconditional throw R8 does not elide, so a bad pair would be an IllegalArgumentException out of player construction rather than a bad buffer. The two play-start thresholds stay fixed even though the Jellyfin tiers move them. BufferingStallPolicy.MIN_BUFFER_AHEAD_MS is a const derived from BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS, so a runtime value there would make the stall watchdog indict a player that is obeying its own load control. That leaves the byte target as a second, often smaller ceiling, and nothing surfaced either. The resolved values now reach getStats, and the overlay's Buffer section gains a Cache Limit row reading "120s / 128MB" next to the buffered-ahead duration, so a tier that appears to do nothing on a high-bitrate file explains itself. close #1816
This commit is contained in:
@@ -120,6 +120,7 @@
|
||||
"darkTheme": "Donker",
|
||||
"oledTheme": "OLED",
|
||||
"libraryDensity": "Bibliotheekdichtheid",
|
||||
"displayScale": "",
|
||||
"compact": "Compact",
|
||||
"comfortable": "Comfortabel",
|
||||
"tvCornerSpotlightBackdrop": "Uitgelichte achtergrond in de hoek",
|
||||
@@ -169,6 +170,11 @@
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Automatisch (aanbevolen)",
|
||||
"bufferSizeWarning": "${heap}MB geheugen beschikbaar. Een buffer van ${size}MB kan afspelen beïnvloeden.",
|
||||
"playbackBuffer": "",
|
||||
"playbackBufferAuto": "",
|
||||
"playbackBufferLarge": "",
|
||||
"playbackBufferExtraLarge": "",
|
||||
"playbackBufferDescription": "",
|
||||
"defaultQualityTitle": "Standaardkwaliteit",
|
||||
"musicQualityTitle": "Muziekkwaliteit",
|
||||
"subtitleStyling": "Ondertitelopmaak",
|
||||
|
||||
Reference in New Issue
Block a user