selectTextLanguage while not displaying text doesn't update active track #2010
Labels
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Milestone
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
Latest
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?
Demo app.
What browser and OS are you using?
Chrome, Mac
What did you do?
shakaDemoMain.player_.selectTextLanguage('el')
in console.shakaDemoMain.player_.getTextTracks()
in console.What did you expect to happen?
I expected ‘el’ to be the active text track.
What actually happened?
But ‘en’ is the active text track instead of ‘el’. This is happening because in
chooseStreamsAndSwitch_
, we do not switch the text stream if it is not visible. That logic is also responsible for updating the active text stream.The text was updated successfully, but these errors were encountered: