-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Hello,
I have been waiting for 2.10.0 release for a long time. Finally it has been released. Thanks for your effort.
I tried to fetch ICY metadata from radio streams, but it seems ExoPlayer fails on some streams. Here is some examples:
http://voyagesc.radyotvonline.com/
ExoPlayer fails in fetching ICY metadata on this radio stream while 'Current Song' section is not empty when you open link on browser (Chrome in my case). Also, ExoPlayer logs this issue as
W/IcyDecoder: Unrecognized ICY tag: null
I would like to also give a working example:
http://stream.radyoalaturka.com.tr:9100/
ExoPlayer successfuly fetches ICY metadata from this stream and invokes MetadataOutput listener.
The only difference between two streams is SHOUTcast Server version; failing stream version is 1.9.8 while working stream version is 2.5.5.733
I used an API level 28 Android 9 Emulator
I fetch ICY Metadata as follows:
player.addMetadataOutput(metadata -> {
if ((metadata != null)) {
final int length = metadata.length();
if (length > 0) {
for (int i = 0; i < length; i++) {
final Metadata.Entry entry = metadata.get(i);
if (entry instanceof IcyInfo) {
final IcyInfo icyInfo = ((IcyInfo) entry);
Log.d("IcyInfo", icyInfo.title);
} else if (entry instanceof IcyHeaders) {
final IcyHeaders icyHeaders = ((IcyHeaders) entry);
Log.d("IcyHeaders", icyHeaders.name);
Log.d("IcyHeaders", icyHeaders.genre);
}
}
}
}
});
I hope these examples help for finding the issue. If you think I miss something to fetch the metadata, please inform me.
Thank you.