Totara Learn Open Discussions

How can I force my Youtube movie subtitles

 
Tom Vandegehuchte
How can I force my Youtube movie subtitles
par Tom Vandegehuchte, Thursday 6 January 2022, 08:34
 

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
par Jordan Ash, Friday 7 January 2022, 01:51
Groupe TotaraGroupe 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
par Tom Vandegehuchte, Friday 7 January 2022, 02:57
 

Hi Jordan,

Thank you for your help.

It worked like a charm!


Kind regards