Skip to content
0:00 / 0:00

#youtubeiframeapi#closedcaptions#cc_load_policy

How to Fix Embedded YouTube Videos Not Showing Closed Captions (cc_load_policy=1 Not Working)

Wiyre

8.9K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

19K views4 years ago1 recommendation

Web developmentHTTP, REST and GraphQLAccessibility

How to force closed captions on embedded YouTube videos by creating language-specific subtitles instead of relying on auto-generated ones.

In this video, we will fix an issue where certain videos from YouTube embedded on external webpages do not automatically have closed captions turned on by default when using the “cc_load_policy=1” parameter in the iFrame code. This occurs even when the video you are trying to embed has closed captions / subtitles when you watch the video or enable the setting manually. This problem stems from the YouTube video settings that you are trying to embed not having language-specific subtitles, or using auto-generated subtitles. To be clear: auto-generated subtitles do not work with cc_load_policy=1. In this video, I’ll show you how to create English (or language-specific) subtitles from the auto-generated subtitles in your video, so that the closed caption option automatically turns on when the video is embedded in an external page. Note that you must own the video in order to make this change! If you are embedding someone else's video on your page, you will need to send them these instructions so they can make the necessary changes themselves in the Subtitles setting of their video. If this video helped, please let me know! If you’d like to generate your own embed code for a YouTube video, check out our YouTube video embed code generator located here: wiyre.com/tools/youtube-video-embed For more information about the cc_load_policy parameter, check out the official documentation for the Iframe Player API here: developers.google.com/youtube/player_parameters#cc_load_poli…

Why it's here

1 person recommends this

What people say. Recommended for solving issues where the cc_load_policy parameter fails to force subtitles on embedded YouTube videos.

Alexandre Schmidton Stack Overflow • Recommends

On “Force YouTube closed captions via URL”

As per link to this video the parameters can only be forced for embedded videos. So you'd have to use this: link to this video ... instead of: link to this video I also faced an issue that videos would not show captions even using the parameters above and I solved this with the solution proposed on link to this video, which states you have to enter YouTube studio, edit the video, go to the "Subtitles" section and click the "Duplicate and Edit" option i.e. the video must have a manually defined subtitle for these parameters to work as expected. This means there's no way you can force auto-translated our auto-generated subtitles to show. Bonus: when using the /embed/ form, videos do not start playing automatically. You can do…