I need to select a particular audio track language in encrypted MPEG dash streams. I found 2 ways to do it in API:
The property audioLanguagesAndRoles and method selectAudioLanguage() in ShakaPlayer class. The property is working well and returning a list of language codes. However selectAudioLanguage() when called with one of the codes has no effect.
getVariantTracks and selectVariantTrack – here as well the getter is working, but the selection method isn't.
I need to select a particular audio track language in encrypted MPEG dash streams. I found 2 ways to do it in API:
audioLanguagesAndRoles
and methodselectAudioLanguage()
inShakaPlayer
class. The property is working well and returning a list of language codes. HoweverselectAudioLanguage()
when called with one of the codes has no effect.getVariantTracks
andselectVariantTrack
– here as well the getter is working, but the selection method isn't.So how can I set the audio track?
Environment:
Shaka player embedded, commit dabbeb5b Widevine 15.2.4 Xcode 12.4 iOS 14.4.1