google / google/ExoPlayer

Add util to convert Metadata into MediaMetadataCompat

Open
#5,031 7 comments 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
enhancement
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### Issue description
Currently it's hard to extract metadata information and using it in the `MediaSessionConnector`. To make it easier i would suggest to add a conversion util that converts `Metadata` into a `MediaMetadataCompat` which can already be converted into a `MediaDescriptionCompat`.

This way it could be used to updated metadata on notifications, lockscreen and cast.

### Reproduction steps
None

### Link to test content
None

### Version of ExoPlayer being used
2.9.0

### Device(s) and version(s) of Android being used
All

### A full bug report captured from the device
None

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.