javascriptyoutubevideo.jsclosed-captions

How To Disable Youtube Captions in a Youtube Embed Link


When creating an embed link on youtube the Captions are on by default. Is there a way to disable to the captions or turning them off when embedding a youtube link?

The documentation indicates:

Make captions automatically appear for an embedded video by adding "&cc_load_policy=1" to the video's embed code.

And I need to it the other way around. I tried to use &cc_load_policiy=0 but that didn't work. I also found this question but none of the answers seem to work.

I am using also VideoJS. So maybe there is a way to do it through it...

Thanks


Solution

  • cc_load_policy (supported players: AS3, AS2) Values: 1. Default is based on user preference. Setting to 1 will cause closed captions to be shown by default, even if the user has turned captions off.

    Reference

    Unfortunately I don't think this is possible as it's a user-preference. The cc_load_policy refers to disabling/enabling the toggle button for the player (limited to AS3, AS2 players). And since VideoJS is based off HTML5, I'm imagining the cc_load_policy isn't available for your use either.