MediaDescriptionAdapter don't work
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.