Embed Youtube with captions by default does not work

I am trying to embed a Youtube movie and want labels to be enabled by default.

From https://developers.google.com/youtube/player_parameters#cc_load_policy I understand what I should use cc_load_policy=1.

I use the html HTML code below, but it does not work. That is, it is loaded with captions (you can manually enable captions, so the video has captions). What am I doing wrong?

I tried the following two options:

<iframe src="https://www.youtube-nocookie.com/embed/xxxxxx?rel=0&amp;&showinfo=0&cc_load_policy=1" frameborder="0" allowfullscreen></iframe>
<iframe src="https://www.youtube-nocookie.com/embed/xxxxxx?rel=0&amp;&showinfo=0" cc_load_policy="1" frameborder="0" allowfullscreen></iframe>
+1
source share
1 answer

Try adding cc_lang_pref, you will not find in the official docs. but it took

cc_load_policy=1&cc_lang_pref=en

pref. ,

+2

Source: https://habr.com/ru/post/1679179/


All Articles