Skip to content

fix(android): play gzip-compressed HLS playlists in mpv again - #562

Merged
playbridgeapp merged 1 commit into
mainfrom
fix/android-gzip-playlists
Nov 18, 2026
Merged

playbridgeapp merged 1 commit into
mainfrom
fix/android-gzip-playlists

Conversation

@playbridgeapp

@playbridgeapp playbridgeapp commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Same fix as #559 (iPhone and Apple TV), for the Android phone and Android TV.

Problem

Some sites serve their HLS playlists gzip-compressed, so the response has no usable length. With FFmpeg's reconnect_streamed=1, the normal end of such a response is treated as a dropped connection: FFmpeg re-requests past the end (Will reconnect at <full size> … End of file), the variant playlists fail to parse (hls: parse_playlist error Invalid data), and only the audio rendition plays: a blank picture shown as live (not seekable, growing duration). Diagnosed on the iPhone; Android's mpv uses the same option.

Change

  • shared/.../MpvLavfReconnectOptions.kt: drop reconnect_streamed=1. reconnect=1, retries on network errors and HTTP 429/5xx, and the retry caps stay. Used by both MpvPlayerEngines (phone and TV) for stream-lavf-o and demuxer-lavf-o.
  • The test now asserts the option is absent.
  • tv/apple/docs/redesign-checks.md: the option string still listed reconnect_streamed=1 after fix(apple): play gzip-compressed HLS playlists in mpv again #559; corrected.

Testing

  • ./gradlew :shared:testAndroidHostTest --tests 'com.playbridge.shared.player.MpvLavfReconnectOptionsTest' passes from both mobile/android and tv/android.
  • Not yet checked on an Android phone or TV with the affected site.

🤖 Generated with Claude Code

Drop FFmpeg's reconnect_streamed from the shared mpv options used by the
Android phone and TV, as #559 did for Apple. With it, FFmpeg treats the
normal end of a response of unknown length (a gzip-compressed playlist)
as a dropped connection, re-requests past the end and fails to parse the
playlist, so only the audio played. The other reconnect options stay.

Also corrects the Apple TV redesign checks doc, which still listed the
option after #559.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@playbridgeapp
playbridgeapp merged commit c1b3135 into main Nov 18, 2026
9 checks passed
@playbridgeapp
playbridgeapp deleted the fix/android-gzip-playlists branch November 18, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant