protected void parseMetadata(String s){
  String[] kvs=s.split(";");
  for (  String kv : kvs) {
    int n=kv.indexOf('=');
    if (n < 1)     continue;
    boolean isString=n + 1 < kv.length() && kv.charAt(kv.length() - 1) == '\'' && kv.charAt(n + 1) == '\'';
    String key=kv.substring(0,n);
    String val=isString ? kv.substring(n + 2,kv.length() - 1) : n + 1 < kv.length() ? kv.substring(n + 1) : "";
    if (playerCallback != null)     playerCallback.playerMetadata(key,val);
  }
}

protected void parseMetadata ( String s ) { String [ ] kvs = s . split ( ";" ) ; for ( String kv : kvs ) { int n = kv . indexOf ( '=' ) ; if ( n < 1 ) continue ; boolean isString = n + 1 < kv . length ( ) && kv . charAt ( kv . length ( ) - 1 ) == '\'' && kv . charAt ( n + 1 ) == '\'' ; String key = kv . substring ( 0 , n ) ; String val = isString ? kv . substring ( n + 2 , kv . length ( ) - 1 ) : n + 1 < kv . length ( ) ? kv . substring ( n + 1 ) : "" ; if ( playerCallback != null ) playerCallback . playerMetadata ( key , val ) ; } }
parses the metadata and sends them to playercallback .
