Showing Youtube Captions by Default in Another Language
July 8th, 2010 | Posted in blog 5 Comments »
I’ve been researching how to translate screencasts. Here’s one problem to overcome: Even if you use youtube’s caption system, if you embed the translated videos on a web page, will users have to select both their language and captions? Normally, we want the video to display these automatically if we’re embedding the video a page that we have translated.
It turns out that by adding some parameters from the Youtube Embedded Player Parameters Reference, you can set the language for the video as well as force-display the captions.
Here’s an example. (I just chose this video because it happens to be translated into about a dozen languages, not because of the content.)
Deutsch
French
Italian
English
Here’s how you enable captions to display by default in another language:
1. Go to youtube and find the video you want to embed. Make sure the video has captions translated into the language you want.
2. In the site footer, select the language you want youtube to display in. This will change all the site language to the one you select.
3. Click the embed button and grab the embed code. The embed code will contain a parameter specifying the site language you selected. For example, in the following embed code for the Italian video, it includes hl=it_IT. That means the language for the video is Italian. For the Deutsch video, it’s hl=de_DE.
Here’s that code in context. It’s on line 2.
4. To force the captions to display by default, add cc_load_policy=1 in the embed code, as shown in the code above on line 2.
That’s all you have to do. Now the video will display captions by default in the language you specified.
Sponsors
Tags: captions, Screencasts, translation, youtube
If you liked this post, keep updated with new content: Subscribe to I'd Rather Be Writing.
Both comments and pings are currently closed.














3820 Subscribers


Yes– but what if I wanted the video to have a default caption language ON THE YOUTUBE SITE ITSELF?!?!
Firstly, thanks for this post. Although I never post any comment on any blog but this time I though I should appreciate your good effort and ask you to keep going. I just loved being here Sign language is my only mean of communication, besides the internet.
This is great! I was looking especially for this post, and you hit the nail right on the head!
i like comedy that is why i always look for funny videos on metacafe and youtube“~
Could we require approval/moderation before SPAM comments are relayed to all of us via email? (Thanks).
[MARKED AS SPAM BY ANTISPAM BEE | CSS Hack]
I am linking this web page from my personal web page .