mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
Remove old parseRole method that looked only for main
This commit is contained in:
parent
06ed877845
commit
43ea388098
@ -469,24 +469,6 @@ public class DashManifestParser extends DefaultHandler
|
||||
return Pair.create(schemeType, schemeData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user