mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Remove old parseRole method that looked only for main
This commit is contained in:
parent
06ed877845
commit
43ea388098
1 changed files with 0 additions and 18 deletions
|
|
@ -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…
Reference in a new issue