-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default caption on load #4951
Comments
I believe that preferred* configs are applied to choose initial tracks, before you call addTextTrackAsync. So you will have to select it yourself. You can use the return value from addTextTrackAsync to call selectTextTrack, though, if I'm not mistaken. |
"On load", your additional tracks don't exist yet, so we can't use the preferences to choose them on load. |
Okay, thanks for the guidelines, After the player loads, I can try to Still the captions is set to Do Have to set As I remember I tried this but didn't work` If I'm not mistaken. |
You also need to call setTextTrackVisibility(true). Please don't change |
Thanks @joeyparrish It works. |
Have you read the Tutorials?
yes
Have you read the FAQ and checked for duplicate open issues?
yes
What version of Shaka Player are you using?
v4.3.0
Please ask your question
I add 7 different external subtitles .vtt to the player using
What I want is for when the player loads it should have a default subtitle activated.
I have to manually go and select the subtitle.
Is there any way to do that?
I already tried the configurations mentioned below.
The text was updated successfully, but these errors were encountered: