androidx / androidx/media

MediaDescriptionAdapter don't work

Open
#638 4 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

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

Description

Please tell me, I'm using the media3 library version 1.1.1 to play mp3 files. To display the notification, I use the PlayerNotificationManager, into which, when creating, I pass the MediaDescriptionAdapter using the setMediaDescriptionAdapter method with the implementation of all methods.

For each media item, I manually specify its MetaData using the setMediaMetadata method of the media item builder. Everything works correctly as long as I have 1 media item, but as soon as there are more than one item, the MetaData of the file itself is displayed in the notification, and not the one that I skipped, although when debugging I get into the MediaDescriptionAdapter methods and return the correct values, but the notification still displays its meta information. Exploring the Internet, I saw a solution to use a MediaSessionConnector to stream MetaData for each item in streaming, but in Media3 this will not work. Please tell me what I'm doing wrong and is there a solution for my case?

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.