mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Reference in a new issue