Totara Learn Open Discussions

How can I force my Youtube movie subtitles

 
Tom Vandegehuchte
How can I force my Youtube movie subtitles
by Tom Vandegehuchte - Thursday, 6 January 2022, 8:34 AM
 

Hi,


I have prepared a collection of Youtube videos with enclosed captions.
Whenever I embed the video in Torara, I do not see the captions and I do not have the option to activate them.
How can this be acchieved?


Kind regards 

Jordan Ash
Re: How can I force my Youtube movie subtitles
by Jordan Ash - Friday, 7 January 2022, 1:51 AM
Group TotaraGroup TXP Site Administrator

Hi Tom,


We have used a few different ways of embedding videos in the community

If you are using the mobile friendly text editor you can simply copy paste the url and the video will embed with closed captions working.

If you are using html you should be able to use the following code to embed the video in a label activity or html block: 

<div class="container-FLUID">

   <video width="1920" height="1080" controls="true">

      <source src="https://www.youtube.com/watch?v=Rb9C5Iu3tfU&amp;ab_channel=TotaraAcademy">

      <track src="https://www.youtube.com/watch?v=Rb9C5Iu3tfU&amp;ab_channel=TotaraAcademy" kind="subtitles" srclang="en" label="en">https://www.youtube.com/watch?v=Rb9C5Iu3tfU&amp;ab_channel=TotaraAcademy

   </video>

</div>

You should just need to replace the URL's with your own YouTube videos.
Tom Vandegehuchte
Re: How can I force my Youtube movie subtitles
by Tom Vandegehuchte - Friday, 7 January 2022, 2:57 AM
 

Hi Jordan,

Thank you for your help.

It worked like a charm!


Kind regards