Skip to content

Android Auto: Display current song and album art in queue. Show artist information.

Robert Stone requested to merge rhstone/vlc-android:update-aa-queue into master

Description

Update MediaSessionCompat queue to include separate title, artist, and album information. This enhances compatibility for Android Auto, as the subtitle field is shown, but the description field is hidden. Add active queue item id to PlaybackStateCompat which adds an icon on the right hand side of the active row and automatically positions display on the currently playing song.

Automotive Bluetooth headunits expect the song title in the title field, artist in the subtitle field, and album in the description field, so this works as expected across devices.

Motivation and Context

Playback queue should contain all relevant information.

How Has This Been Tested?

Tested against Android Auto and Bluetooth headunits. Title / Artist / Album correctly display in respective fields.

Attempted to pass various bitmap sizes to setIconBitmap to no avail, it appears only setIconUri works.

Screenshots / GIFs (if appropriate):

Android Auto:

current_playlist_position

Bluetooth Headunit (existing behavior):

bt_headunit_orig

Bluetooth Headunit (updated):

bt_headunit_new

Types of changes

  • Enhancement (non-breaking change which cleans up / improves existing functionality)

Checklist

  • I have read the CONTRIBUTING section of the README document.

Merge request reports