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

id3 read #88

Open
drpark opened this issue May 3, 2020 · 7 comments
Open

id3 read #88

drpark opened this issue May 3, 2020 · 7 comments
Assignees
Labels
1 backlog enhancement New feature or request

Comments

@drpark
Copy link

drpark commented May 3, 2020

Hi,
it would be great to add id3 reading support (useful for live stream for example)

thank you

@drpark drpark added 1 backlog enhancement New feature or request labels May 3, 2020
@aljibbs
Copy link

aljibbs commented Oct 26, 2020

Any feedback on this yet ?

@ryanheise
Copy link
Owner

No update, sorry. Although it would be a useful feature to have, it's not the highest on my own priority list. Although pull requests would definitely be welcome if someone is willing to contribute in this area.

@alexey-nobody
Copy link

Any feedback on this yet? Or maybe can I read bytes or stream file from just_audio and parse tags?

@ryanheise
Copy link
Owner

I think the easiest approach is to clone the just_audio git repository and the necessary code. Unfortunately I can't do this as soon as you might like, although pull requests are welcome. If you search online for id3+avplayer or id3+exoplayer you will find the necessary code for the iOS and Android platforms.

@emmggi
Copy link

emmggi commented Oct 29, 2022

There's this https://pub.dev/packages/audiotagger

@akshdeep-singh
Copy link

Hi @ryanheise, can you expose this ExoPlayer api:

Retrieving metadata: Without playback

@akshdeep-singh
Copy link

akshdeep-singh commented May 3, 2023

Here:

@Override
public void onTracksChanged(Tracks tracks) {
for (int i = 0; i < tracks.getGroups().size(); i++) {
TrackGroup trackGroup = tracks.getGroups().get(i).getMediaTrackGroup();
for (int j = 0; j < trackGroup.length; j++) {
Metadata metadata = trackGroup.getFormat(j).metadata;
if (metadata != null) {
for (int k = 0; k < metadata.length(); k++) {
final Metadata.Entry entry = metadata.get(k);
if (entry instanceof IcyHeaders) {
icyHeaders = (IcyHeaders) entry;
broadcastImmediatePlaybackEvent();
}
}
}
}
}
}

ExoPlayer also parses id3 metadata, but the event is not sent to flutter app in that case.
I think, it would be good idea to add the event for id3 headers also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants