Skip to content

Useless seek-forward and back buttons appear in Auto/Automotive controls #2782

@mylesbennett-global

Description

@mylesbennett-global

Version

Media3 1.8.0

More version details

This is an apparent bug in Auto/ Automotive. We recently updated the following libraries from 1.5.1 to 1.8.0:

media3-common = { module = "androidx.media3:media3-common", version.ref = "androidxMedia3" }
media3-mediasession = { module = "androidx.media3:media3-session", version.ref = "androidxMedia3" }
media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "androidxMedia3" }
media3-ui = { module = "androidx.media3:media3-ui", version.ref = "androidxMedia3" }
media3-hls = { module = "androidx.media3:media3-exoplayer-hls", version.ref = "androidxMedia3" }
media3-cast = { module = "androidx.media3:media3-cast", version.ref = "androidxMedia3" }
media3-okhttp = { module = "androidx.media3:media3-datasource-okhttp", version.ref = "androidxMedia3" }

where androidxMedia3 is now set to 1.8.0

Since doing this, two extra useless buttons have appeared in the player controls. Their inclusion pushes our configured buttons onto the overflow screen (see attached image).
I have aggressively hacked the code to try to find a way to remove them including modifying onConnect and getAvailableCommands but they keep appearing.

How do I get rid of them?

BEFORE (1.5.1)
Image

AFTER (1.8.0)
Image

Devices that reproduce the issue

Appning emulator using Appning Arm64 AAOS, API 34
Automotive emulator (1408p landscape) with Google Play API 34-ext9
Android Auto - Desktop Head Unit (buttons are displaced by empty space)

Devices that do not reproduce the issue

Unknown. Everything I have access to is listed above.

Reproducible in the demo app?

Not tested

Reproduction steps

If you have seek-forward and seek-back (I assume that's what those buttons are) in the demo app, try to configure them out.

Expected result

You can make them disappear completely and the other controls shuffle in to fill the space.

Actual result

The buttons remain but are greyed-out.

Media

https://media-ice.musicradio.com/Capital

Bug Report

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions