Skip to content

feat(player): playlist queues keep loading their playlist - #2314

Merged
A-EDev merged 6 commits into
feat/queue-sheet-repeatfrom
feat/playlist-queue-growth
Nov 23, 2026
Merged

A-EDev merged 6 commits into
feat/queue-sheet-repeatfrom
feat/playlist-queue-growth

Conversation

@A-EDev

@A-EDev A-EDev commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • A video queue started from a YouTube playlist keeps loading the playlist: the next page joins about 10 videos before the end of what has loaded. A skip that reaches the end waits for the page instead of falling back to related videos.
  • Shuffle starts at once and mixes later pages into the part not yet played, never moving the video that plays next.
  • A watch?v=...&list=... link reads the playlist window (about 100 videos, total and continuation) from the watch request the player already makes, so it starts with one request and keeps growing through the panel continuation.
  • The saved queue holds at most 500 videos around the current one plus where to continue loading, instead of the whole queue on every advance.
  • Playlist pages read by the page and by a queue share one small page cache with in-flight dedupe.

Stacked on #2313.

Related issue

None

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

Validation

  • ./gradlew :app:assembleGithubDebug
  • ./gradlew :app:testGithubDebugUnitTest (top of the stack: 7029 tests, 0 failures)
  • I ran any additional flavor-specific build or test tasks affected by this change. (spotlessCheck, :app:compileFossDebugKotlin)
  • I manually tested the affected behavior on an Android device or emulator.

Test device and Android version: Xiaomi 2311DRK48G, HyperOS (Android 16), github debug build of the top of the stack

Screenshots or recordings

Risk and compatibility

Playback path: setQueue gains an optional page source; with none, behaviour is unchanged. The watch /next gains an optional playlistId only for videos started from a playlist link; related videos are still in that response. Phone check: Play all on a 6,129-video playlist started a 100-video queue; tapping video 100 loaded one page (queue page added=100, queue 101 / 200). A link to video 1,002 sent one /next and no browse request (queue 99, start 20), then grew by 78 through the panel continuation.

  • The change does not introduce secrets, private data, or unexpected telemetry.
  • New user-facing text uses Android string resources.
  • Dependency and lockfile changes are intentional and limited to this PR.
  • Room schema changes include the required version bump and migration, or this PR does not change the Room schema.
  • Breaking changes and upgrade steps are clearly documented.

@github-actions github-actions Bot added documentation Improvements or additions to documentation player Video and audio playback ui Compose UI, theming, or Material 3 surfaces extraction InnerTube / NewPipe extraction and networking labels Nov 23, 2026
perf(playlists): load YouTube playlists a page at a time
@A-EDev
A-EDev merged commit 54a31a8 into feat/queue-sheet-repeat Nov 23, 2026
1 check passed
@A-EDev
A-EDev deleted the feat/playlist-queue-growth branch November 23, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation extraction InnerTube / NewPipe extraction and networking player Video and audio playback ui Compose UI, theming, or Material 3 surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant