Skip to content

Next and Prev buttons in Google Home are disabled when casting using RemotePlayer #3086

@DavidShillito-Tactician

Description

Version

Media3 1.9.0

More version details

No response

Devices that reproduce the issue

Pixel 7a running API 36. Also Android Studio emulators running API 23 or API 36.

Devices that do not reproduce the issue

Have not found any

Reproducible in the demo app?

Yes

Reproduction steps

  1. Run the demo-session app from the Media3 demo suite
  2. Click on "Artist".
  3. Click on "Kai Engel". Any other would also show the problem.
  4. Click on Cast button at bottom-right of screen and start a cast session to a device (I use a Google Nest Mini).
  5. Click on PLAY. Playback commences on the chosen device and will continue automatically through each of the 8 tracks.
  6. Using another device on the same network, run the Google Home app and inspect the playback state for the cast session you have just started.

Expected result

While the first MediaItem is playing the Prev button should be disabled and the Next button should be enabled. On items 2 to 7 both buttons should be enabled. On the final item only the Prev button should be enabled.

Actual result

The Prev and Next buttons are both disabled no matter what track is playing. Note that at the same time the playback notification in the device under test does enable its buttons appropriately. Note also that other apps including "YT Music" and "NPR" do exhibit the expected behaviour when viewed from Google Home.

Media

Not applicable. The demo-session app supplies its own media. Also with my own app, which is too complex to share here, the problem is visible with a variety of playlists.

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions