Mentions légales du service

Skip to content
Snippets Groups Projects

Tuto3-ai4t : Set french video but default to english video

Merged ROSPARS Benoit requested to merge (removed):master into master
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -29,6 +29,7 @@
let lang = $application.attr('data-lang');
// Lang file extension used for subtitles
let langExt = lang && lang === 'fr' ? '':`-${lang}`;
let videoExt = lang && lang === 'fr' ? '':`-en`;
// Chemins
let dataFolder = baseURL + "/data";
@@ -80,7 +81,7 @@
case '/':
// Chemin de la vidéo à insérer dans la template :
templateParams.videoPath = "https://files.inria.fr/mecsci/classcodeIAI/tuto3-ai4t/Tuto3-video1-EN.mp4";
templateParams.videoPath = "https://files.inria.fr/mecsci/classcodeIAI/tuto3-ai4t/tuto3-activite1-vid1" + videoExt + ".mp4";
templateParams.subtitlePath = tutorialFolder + "/vtt/tuto3-activite1-vid1" + langExt + ".vtt";
break;
case '/tester':
@@ -199,13 +200,13 @@
case '/comprendre/etape1':
// Chemin de la vidéo à insérer dans la template :
templateParams.videoPath = "https://files.inria.fr/mecsci/classcodeIAI/tuto3-ai4t/Tuto3-video2-EN.mp4";
templateParams.videoPath = "https://files.inria.fr/mecsci/classcodeIAI/tuto3-ai4t/tuto3-activite1-vid2" + videoExt + ".mp4";
templateParams.subtitlePath = tutorialFolder + "/vtt/tuto3-activite1-vid2" + langExt + ".vtt";
break;
case '/conclure/etape1':
// Chemin de la vidéo à insérer dans la template :
templateParams.videoPath = "https://files.inria.fr/mecsci/classcodeIAI/tuto3-ai4t/Tuto3-video3-EN.mp4";
templateParams.videoPath = "https://files.inria.fr/mecsci/classcodeIAI/tuto3-ai4t/tuto3-activite1-vid3" + videoExt + ".mp4";
templateParams.subtitlePath = tutorialFolder + "/vtt/tuto3-activite1-vid3" + langExt + ".vtt";
break;
Loading