google / google/ExoPlayer

Provide an API for metadata & frame extraction without playback

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

Description

### Issue description
I'm trying to extract track information such as title and an artist from the local mp3 file before playing it.

I managed to get track metadata in 'onTracksChanged' callback, but I need access to it earlier. I have File object and its uri and I tried to use Mp3Extractor directly, which needs DataSource, but I'm not sure how to create it.

Could you provide me with the information if such a thing is possible and how to do it?

### Version of ExoPlayer being used
2.5.4

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.