aacdecoder-android
aacdecoder-android copied to clipboard
playerMetadata() not working on ShoutcastV2
What steps will reproduce the problem?
1.The playerMetadata()is not return the current streamTitle on Shoutcast
Version 2+
What is the expected output? What do you see instead?
I expect to return the streamTitle. It returns nothing, but the server details
are returning. It works on shoutcast version 1.98 and all version of icecast.
What version of the product are you using? On which device ?
0.8 on Galaxy S4
What is the URL of the stream ?
I'm using my local server.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 29 Aug 2014 at 12:36
@Override public void playerMetadata(final String key, final String value) {
if (key == null || key.isEmpty()) {
return;
}
if ("StreamTitle".equals(key)) {
MUSIC = value;
} else if ("icy-name".equals(key)) {
PROGRAM = value;
} else {
return;
}
}