androidx / androidx/media

Set fallback cover to MediaItem (and use by Notification)

Open
#1,221 1 comment 2 reactions 1 assignee View on GitHub

@icbaker is already working on this.

Since Mar 25, 2024.

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

Description

[REQUIRED] Use case description

I'm developing a music app, and I want to set the cover arts to the notification in this way:

Sometime the track has a cover (in audio file), sometime it doesn't. So: if the track has a cover, then make use of it; if the track has no cover, I can provide a Uri (like album cover) as a fallback.

Before 1.3.0 the notification did work in above way if I only set an artworkUri, but now got fixed. (I guess in #964)

Proposed solution

Allow an order for multiple artwork source?

Thanks!

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.