Currently the Android SDK populates the AudioTrack#language
and AudioTrack#label
with the same language value. If an AdaptationSet label is present in the manifest, this value is not used.
Example snippet:
<AdaptationSet id="1" group="1" contentType="audio" lang="nl" segmentAlignment="true" audioSamplingRate="48000" mimeType="audio/mp4" codecs="mp4a.40.2" startWithSAP="1">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2" />
...
<Label>Stereo</Label>
...
</AdaptationSet>
Current behaviour:
AudioTrack#language: nl
AudioTrack#label: nl
Expected behaviour:
AudioTrack#language: nl
AudioTrack#label: Stereo
Otherwise, it’s fine to use language as a fallback value for label if it’s not present in the manifest.