Android Auto: browsable Home sections, full online search (artists/albums/playlists) and artist pages

Open
#198 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by reading MediaLibraryItemFactory.queueMediaItem() to see why Home sections are both playable and browsable, then MediaLibrarySearchController where SearchFilter.FILTER_SONG limits search. The existing ONLINE_PLAYLIST handling in MediaLibraryBrowseTreeResolver and the voice-search queue in resolveVoiceMediaItems are the patterns to reuse for artist/album pages and context playback. Done means tapping a Home section opens a browsable list with a Play all/Shuffle entry, search returns browsable artists/albums/playlists, and online artist/album pages open from search results.

Written by the indexing model from the issue text.

Description

enhancement
Pre-submission Checklist
  • I have searched existing issues to ensure this hasn't been requested before.
  • This request covers a single, specific improvement.
  • The issue title is concise and descriptive.
Category

✨ New Feature

Is your feature request related to a problem?

Using YumaPlayer in Android Auto (v1.2.0-RC.3), it works well for playing music I already prepared on the phone, but it's hard to choose or discover music directly in the car:

  1. Home sections can't be browsed. Quick picks, Forgotten favorites, Keep listening, Suggested songs and Mixes & radios look like folders, but tapping them immediately starts playback. There's no way to see what a section contains and pick a song, except through the queue screen after playback has started. In MediaLibraryItemFactory, queueMediaItem() marks these items as both playable and browsable, and Android Auto chooses to play them.

  2. Online search returns songs only. MediaLibrarySearchController searches YouTube with SearchFilter.FILTER_SONG, so searching an artist's name returns some of their songs, but never the artist, their albums or playlists. Artists, albums and playlists only appear if they are already in the local library.

  3. No artist or album pages from YouTube. In the phone app I can open an artist and see top songs, albums and radio, but in Android Auto there's no equivalent. Tapping an online search result plays only that single song (then autoplay continues with similar songs, not necessarily by the same artist).

Proposed Solution

In order of priority:

  1. Browsable Home sections: make Home sections browsable-only (or add a setting "Home sections: play immediately / show list"), so tapping opens the song list. A "Play all" / "Shuffle" entry at the top of each list would keep the current one-tap behavior available. The playlist browse code already does something similar with PLAYLIST_ACTION_SHUFFLE.

  2. Full online search: also include artists, albums and playlists from YouTube Music in Android Auto search results (e.g. a few top results per type, or the "Top result" section), as browsable items.

  3. Artist and album pages: when opening an online artist or album from search, show a browsable page with top songs, albums and an artist radio entry. Online playlists are already browsable in Android Auto (ONLINE_PLAYLIST path used by "Mixes & radios"), so a similar approach could be used for artists and albums.

  4. Play a search result in context (optional): when tapping a song from online search, queue the other search results after it (like voice search already does with resolveVoiceMediaItems), instead of playing a single song.

Alternatives Considered

Preparing everything on the phone (likes, library, playlists) and then playing from Library sections in the car. It works, but it doesn't allow choosing new music while driving, which is the main advantage of the official YouTube Music Android Auto experience.

Reference Open-Source Implementation (Optional / Recommended)

Existing code paths in this repo that could be reused: ONLINE_PLAYLIST browsing in MediaLibraryBrowseTreeResolver, the voice search queue in resolveVoiceMediaItems, and the playlist shuffle action.

Visual Context & Attachments

No response

Dominant language
Kotlin
Stars
681
Forks
22
Avg merge
11h 50m
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MuwMx/YumaPlayer

All issues in MuwMx/YumaPlayer

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.