shaka-player-embedded
shaka-player-embedded copied to clipboard
Selecting audio track fails
trafficstars
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
audioLanguagesAndRolesand methodselectAudioLanguage()inShakaPlayerclass. The property is working well and returning a list of language codes. HoweverselectAudioLanguage()when called with one of the codes has no effect. getVariantTracksandselectVariantTrack– 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