mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
resolve #1095 get language for all types, not just audio
This commit is contained in:
parent
d5425bb64a
commit
8e1f14cbc3
1 changed files with 1 additions and 1 deletions
|
|
@ -623,6 +623,7 @@ public class SmoothStreamingManifestParser implements UriLoadable.Parser<SmoothS
|
|||
|
||||
index = parseInt(parser, KEY_INDEX, -1);
|
||||
bitrate = parseRequiredInt(parser, KEY_BITRATE);
|
||||
language = (String) getNormalizedAttribute(KEY_LANGUAGE);
|
||||
|
||||
if (type == StreamElement.TYPE_VIDEO) {
|
||||
maxHeight = parseRequiredInt(parser, KEY_MAX_HEIGHT);
|
||||
|
|
@ -640,7 +641,6 @@ public class SmoothStreamingManifestParser implements UriLoadable.Parser<SmoothS
|
|||
if (type == StreamElement.TYPE_AUDIO) {
|
||||
samplingRate = parseRequiredInt(parser, KEY_SAMPLING_RATE);
|
||||
channels = parseRequiredInt(parser, KEY_CHANNELS);
|
||||
language = (String) getNormalizedAttribute(KEY_LANGUAGE);
|
||||
} else {
|
||||
samplingRate = -1;
|
||||
channels = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue