Embedding Youtube Videos With Captions Turned On

Image via CrunchBase

Some YouTube videos come with captions. If you’re posting a video in French or Serbian then it might not be a bad idea to turn on the English language captions (if they exist)

Unfortunately YouTube’s default embed code these days does not include any of these options, as it’s a rather simple iframe

You can, however, add the captioning to any video if you use the older style embed code.

YouTube’s help docs here explain it – you’ll just need to ensure that you add the full code snippet / tag to your embed code ie. “&cc_load_policy=1

So your code can end up looking a bit like this:

<object width=”560″ height=”315″><param name=”movie” value=”http://www.youtube.com/v/C0tUDIyDLZk?version=3&amp;hl=en_US&cc_load_policy=1″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/C0tUDIyDLZk?version=3&amp;hl=en_US&cc_load_policy=1″ type=”application/x-shockwave-flash” width=”560″ height=”315″ allowscriptaccess=”always” allowfullscreen=”true”></embed></object>

Which will render this:

Posting this more for my own usage than anything else 🙂

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version