google / google/ExoPlayer

Custom Actions appears on Android Auto, but not on Android Wear.

Open
#8,465 2 comments 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
needs triage question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I'm developing Audiobook app. In this app more important is seeking than changing items on playlist.

I disabled actions `ACTION_SKIP_TO_NEXT` and `ACTION_SKIP_TO_PREVIOUS` in `TimelineQueueNavigator`. Then I provided custom actions to `MediaSessionConnector` by method `setCustomActionProviders()`.

It works great on Android Auto, but on Android Wear, custom actions does not appear.

I have tried many solutions, but I can't display custom action on Wear. I know that is possible, cause Spotify app displays custom Heart icon.

I have idea for workaround, in the `TimelineQueueNavigator`, I can handle next/prev action with my custom code and override icons, but I can't find drawable that is used in Android Wear and Android Auto, responsible for next/prev action. Unfortunately Android Wear and Android Auto is not open source, so I can't find resourceId.

Any help?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.