Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set fallback cover to MediaItem (and use by Notification) #1221

Open
lynkas opened this issue Mar 25, 2024 · 1 comment
Open

Set fallback cover to MediaItem (and use by Notification) #1221

lynkas opened this issue Mar 25, 2024 · 1 comment
Assignees

Comments

@lynkas
Copy link

lynkas commented Mar 25, 2024

[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!

@icbaker
Copy link
Collaborator

icbaker commented Mar 25, 2024

This is part of a larger change we've been considering to give app developers more control over how MediaItem.mediaMetadata and in-stream metadata are merged (currently MediaItem.mediaMetadata is always used in preference to in-stream metadata). It's not trivial to design how this more flexible merging should be exposed, and I'm afraid we don't have any concrete plans to work on this at the moment, but I will keep this issue open to track it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants