Parse audioChannels only when on mpeg-dash
Only parse the @value as Int when the schemeIdUri is urn:mpeg:dash:23003:3:audio_channel_configuration:2011
This commit is contained in:
parent
d7697176ed
commit
ff6455aadb
@ -590,7 +590,10 @@ public class MediaPresentationDescriptionParser extends DefaultHandler
|
||||
|
||||
protected int parseAudioChannelConfiguration(XmlPullParser xpp)
|
||||
throws XmlPullParserException, IOException {
|
||||
int audioChannels = parseInt(xpp, "value");
|
||||
int audioChannels = -1;
|
||||
String schemeIdUri = parseString(xpp, "schemeIdUri", "");
|
||||
if (schemeIdUri.equals("urn:mpeg:dash:23003:3:audio_channel_configuration:2011"))
|
||||
audioChannels = parseInt(xpp, "value");
|
||||
do {
|
||||
xpp.next();
|
||||
} while (!ParserUtil.isEndTag(xpp, "AudioChannelConfiguration"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user