Totara Learn Open Discussions

How can I force my Youtube movie subtitles

 
VandegehuchteTom
How can I force my Youtube movie subtitles
VandegehuchteTom 发表于 2022年01月6日 Thursday 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 

AshJordan
Re: How can I force my Youtube movie subtitles
AshJordan 发表于 2022年01月7日 Friday 01:51
小组 Totara小组 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.
VandegehuchteTom
Re: How can I force my Youtube movie subtitles
VandegehuchteTom 发表于 2022年01月7日 Friday 02:57
 

Hi Jordan,

Thank you for your help.

It worked like a charm!


Kind regards