Setting the preferred language enables the text track visibility. #626
Labels
flag: good first issue
This might be a relatively easy issue; good for new contributors
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Milestone
What version of Shaka Player are you using?V2.0.1
master
?YesAre you using the demo app or your own custom app?
I could reproduce the issue in both custom and demo application.
What did you do?
Try playing a multicodec and multilingual content
Angel one
Angel one(multicodec and multilingual)
Change the preferred text language. It enables the text track visibility
What did you expect to happen?
Change the preferred text language should retain the state of the text T\track visibility
What actually happened?
It enables the text track visibility by default
Scenario: In our application we had content that has three English audio track with different bit rates.
As we wanted to provide the user only the audio language access, we then used preferredAudioLanguage
But after using this, we found strange behavior which automatically switches text track. To fix this we determined the current active text track language and set it as preferred language. Now we could see that text track visibility is on when audio switches.
I could see that https://github.com/google/shaka-player/blob/master/lib/player.js at line number 1512
text track visibility is set to default value( showing) without retaining to the previous value.
The text was updated successfully, but these errors were encountered: