I want to embed a youtube video on my website. The original video is not in english and I want that for people visiting my website, the video shows up with the subtitles in english. I know how to do this for myself, but how can I do this for all visitors automatically?
In the embed code (which I assume is an iframe) just add cc_load_policy=1 after the url. So like this:
<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/randomvideo-VE?cc_load_policy=1" frameborder="0"/>
This should automatically enable captions, even if users have it disabled by default.
To specify a language, use the
&hl=es&cc_lang_pref=langID parameter before the
langID: es for spanish, en for english, etc.