Showing results for 
Show  only  | Search instead for 
Did you mean: 
Community Member

How to embed code for captions on inserted video?

I want to add captions to a video media file that I inserted in a Page. I uploaded both the .mp4 and the .vtt file to Files, then tried to add this tag to the embed code: <track src="/courses/0/files/0.vtt/download" kind="subtitles" srclang="en" label="English" />

Even though the 'CC' button shows up on the video, the captions don't show up after I click on it. Is my track source URL incorrect?

I've looked at this guide, and it doesn't apply because I used the "Insert/Edit Media" button, instead of "Record/Upload Media" so that I wouldn't get a thumbnail.

I've also looked at this other guide for external videos, but it also doesn't apply because it's not an external video.

2 Replies
Community Member

I am facing the same issue, anyone please answer this, it would much better.

Community Member

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

You can also choose a caption language for the embedded youtube video. To specify the caption language for the video that you'd like to embed, just add "&cc_lang_pref=fr&cc_load_policy=1" to the video's embed code.

  • "cc_lang_pref" sets the language for the captions shown in the video.
  • "cc_load_policy=1" turns captions on by default.
  • "fr" represents the language code for French. You can look up 2-letter language codes in the ISO 639-1 standard.