Forcing captions for youtube in a specific languge? #1364
Unanswered
anthonygrignoux
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Native YouTube embed controls are disabled when displaying your own. YouTube captions will not show if they are disabled. You can either load your own custom captions, or opt to use default embed controls by first removing any custom controls and then setting <MediaPlayer controls> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm losing my mind over how to pass the parameters that would force the display of the youtube close-captions
(as in the one that have been contributed through youtube), and in a chosen language.
I'm using the react version of VidStack.
There is a
provider
option calledlanguage
that does not seem to force anything at all.And most of the time, depending on the video I can't seem to force the close-captions to appear.
I've tried to pass the full url of the youtube video to MediaPlayer including the parameters
cc_lang_pref
(to 'fr' in my specific case) andcc_load_policy
(to 1).No success there either.
The type of the provider does not reveal any other options or parameters that would solve this problem.
I can't reproduce the bug on StackBlitz because apparently Youtube blocks them, so here a simplified version of my component without the imports or the types.
I'm trying to make it work with the video with the following ID: 8XxxtI5wCYo
The latter has subtitles in both English and French
Beta Was this translation helpful? Give feedback.
All reactions