private static float getAttributeValueRatio(XmlPullParser parser, String name) {
        String value = getAttributeValue(parser, name);

        if(value != null) {
            String[] values = value.split(":");
            return (float)Integer.parseInt(values[0]) / Integer.parseInt(values[1]);
        }

        return 0;
    }
Converts a time/timescale pair to microseconds.
MediaPlayer-DASH/src/main/java/net/protyposis/android/mediaplayer/dash/DashParser.java