vbartacek / aacdecoder-android

Automatically exported from code.google.com/p/aacdecoder-android
GNU Lesser General Public License v3.0
119 stars 58 forks source link

playerMetadata() not working on ShoutcastV2 #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 amf...@gmail.com on 29 Aug 2014 at 12:36

Informatheus commented 9 years ago

@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;
    } 

}