public static byte[] parseSchemeSpecificData(byte[] atom,UUID uuid){
  Pair<UUID,byte[]> parsedAtom=parsePsshAtom(atom);
  if (parsedAtom == null) {
    return null;
  }
  if (uuid != null && !uuid.equals(parsedAtom.first)) {
    Log.w(TAG,"UUID mismatch. Expected: " + uuid + ", got: "+ parsedAtom.first+ ".");
    return null;
  }
  return parsedAtom.second;
}

public static byte [ ] parseSchemeSpecificData ( byte [ ] atom , UUID uuid ) { Pair < UUID , byte [ ] > parsedAtom = parsePsshAtom ( atom ) ; if ( parsedAtom == null ) { return null ; } if ( uuid != null && ! uuid . equals ( parsedAtom . first ) ) { Log . w ( TAG , "UUID mismatch. Expected: " + uuid + ", got: " + parsedAtom . first + "." ) ; return null ; } return parsedAtom . second ; }
parses the scheme specific data from a pssh atom . version 0 and 1 pssh atoms are supported . < p > the scheme specific data is only parsed if the data is a valid pssh atom matching the given uuid , or if the data is a valid pssh atom of any type in the case that the passed uuid is null .
