Description
-
What version of Shaka Player are you using? 2.1.1
-
Can you reproduce the issue with our latest release version? Yes
-
Can you reproduce the issue with the latest code from
master
? Yes
-
-
Are you using the demo app or your own custom app? Custom
-
What browser and OS are you using? Chrome on Win10
-
What did you do?
- What content did you load? https://content.uplynk.com/d915916d22e74d16b21cfeb8e1c59adb.mpd (Content is copyrighted so can't share valid playback url)
-
What did you expect to happen? After calling
shakaPlayer.selectAudioLanguage('sp')
I expected the audio language to change. -
What actually happened? Nothing.
I believe this is cause by the playhead being in a different period than the period the StreamingEngine
is downloading from. Stepping through the code, inside Player.chooseStreams_()
StreamingEngine.getActiveStreams()
returns streams with a presentationTimeOffset
different from those in the currentPeriod.variants
objects. This prevents the activeVariant
from changing to the new language.