Commit 43ea3880 by Arnold Szabo

Remove old parseRole method that looked only for main

parent 06ed8778
...@@ -470,24 +470,6 @@ public class DashManifestParser extends DefaultHandler ...@@ -470,24 +470,6 @@ public class DashManifestParser extends DefaultHandler
} }
/** /**
* Parses a Role element.
*
* @param xpp The parser from which to read.
* @throws XmlPullParserException If an error occurs parsing the element.
* @throws IOException If an error occurs reading the element.
* @return {@link C.SelectionFlags} parsed from the element.
*/
protected int parseRole(XmlPullParser xpp) throws XmlPullParserException, IOException {
String schemeIdUri = parseString(xpp, "schemeIdUri", null);
String value = parseString(xpp, "value", null);
do {
xpp.next();
} while (!XmlPullParserUtil.isEndTag(xpp, "Role"));
return "urn:mpeg:dash:role:2011".equals(schemeIdUri) && "main".equals(value)
? C.SELECTION_FLAG_DEFAULT : 0;
}
/**
* Parses children of AdaptationSet elements not specifically parsed elsewhere. * Parses children of AdaptationSet elements not specifically parsed elsewhere.
* *
* @param xpp The XmpPullParser from which the AdaptationSet child should be parsed. * @param xpp The XmpPullParser from which the AdaptationSet child should be parsed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment