androidx / androidx/media

Always-on Display Is Not Updated Dynamically

Open
#246 13 comments 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Jan 25, 2023.

bug
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Media3 Version

1.0.0-beta03

Devices that reproduce the issue
  • Pixel 4a running Android 13
Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

I maintain an Android radio app. The app displays the currently playing song in the notification. Media3 automatically updates the notification when no Title has been set in MediaMetadata of a MediaItem - which is pretty neat (see also #153).

The Always-on Display on the other hand is not automatically updated.

To reproduce:

  1. turn on the Always-on Display in Settings > Display > Lock screen > Always show time and info on the testing device
  2. modify the demo-session app to not set a title in MediaItemTree.kt
  3. play back a radio station via the demo-session app
  4. the Notification is updated dynamically ✅
  5. turn off the display to see if the title is updated dynamically in the Always-on Display
Expected result

In the Always-on Display the same Title should be displayed as in the Notification.

Actual result

The Always-on Display displays "No title", when a title has not been set.

The photos above are from a fork of the demo-session app (see https://github.com/y20k/media3/commit/2e722acef9dbf7c7bc5f079c1605b779e2d42dae).

Media

I added a radio station to demos/session/src/main/assets/catalog.json in a fork of the demo app to test the issue.

Bug Report
  • You will email the zip file produced by adb bugreport to dev.exoplayer@gmail.com after filing this issue.

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.