shaka-player-embedded icon indicating copy to clipboard operation
shaka-player-embedded copied to clipboard

Selecting audio track fails

Open andrej-repisky opened this issue 4 years ago • 0 comments
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 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.

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

andrej-repisky avatar Apr 21 '21 06:04 andrej-repisky