private static String getAttributeValue(XmlPullParser parser, String name, String defValue) {
        String value = parser.getAttributeValue(null, name);
        return value != null ? value : defValue;
    }
Converts a time/timescale pair to microseconds.
MediaPlayer-DASH/src/main/java/net/protyposis/android/mediaplayer/dash/DashParser.java