Would it be possible to update the Exoplayer for B4A? In the mean while, the original library supports reading MP3 tags, which is interesting for displaying info (like the title of the current song playing) on radio streams. I desperately need this for one of my applications and I cannot find a library that does this (the AAC decoder that is often mentioned, does not work with the latest API).
See https://medium.com/google-exoplayer/exoplayer-2-1-whats-new-2832c09fedab
ExoPlayer 2.1 - What’s new
ID3 metadata and album art
ExoPlayer now parses ID3 metadata from the headers of MP3 and MP4 files.
See https://medium.com/google-exoplayer/exoplayer-2-1-whats-new-2832c09fedab
ExoPlayer 2.1 - What’s new
ID3 metadata and album art
ExoPlayer now parses ID3 metadata from the headers of MP3 and MP4 files.
B4X:
@Override
public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {
for (int i = 0; i < trackGroups.length; i++) {
TrackGroup trackGroup = trackGroups.get(i);
for (int j = 0; j < trackGroup.length; j++) {
Metadata trackMetadata = trackGroup.getFormat(j).metadata;
if (trackMetadata != null) {
// We found metadata. Do something with it here!
}
}
}
}
Last edited: