Skip to content

Android Auto / notification queue view only shows the current episode #256

Description

@mapitman

Problem

Found while testing the Android Auto integration (#246/#250/#247/#248) on the Desktop Head Unit: tapping the queue button on Android Auto's now-playing screen shows only the currently playing episode, not the rest of Next Up.

Root cause

Android Auto's queue view (and the media notification's own queue UI, where shown) isn't driven by this app's QueueRepository at all -- Media3 generates it directly from the player's own Timeline (Player.getCurrentTimeline()/getMediaItemCount()), via its legacy MediaSessionCompat bridge. PlaybackService deliberately never loads more than one MediaItem into ExoPlayer's own playlist at a time -- Next Up is tracked entirely externally in QueueRepository, with the next item only resolved and swapped in at the moment the current one ends or is skipped (see the comments around issue #179, #196, #240/#241's playNextQueued). Since the player's timeline only ever has one item, that's all Auto (or any other timeline-driven queue UI) can show.

Why this isn't a quick fix

Making Auto's queue view show the real Next Up list means the player's Timeline needs to actually reflect it -- i.e. loading Next Up as a real multi-item ExoPlayer playlist rather than swapping a single MediaItem at transition time. That's a genuine architecture change, not a patch:

Scope for a fix (not yet planned in detail)

  • Decide how much of Next Up to actually materialize into the player's Timeline at once (all of it? a bounded lookahead window?) balanced against the per-episode resolution/gating logic above.
  • Keep QueueRepository as the source of truth, syncing the player's Timeline to it rather than duplicating queue state.
  • Re-verify auto-advance, preloading, and skip-unplayable behavior all still hold with a real multi-item timeline.

How this was found

Manual testing of the Android Auto browse tree (issue #250) end to end on the Desktop Head Unit, connected to a real device with the merged #246/#250/#247/#248 build installed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions