Interactive video subtitles not working

I seem to be experiencing a problem when adding subtitles to an interactive video, in the past I was sucessfully able to add english subtitles to a video but now when I am trying to add an additional track for lativian subtitles, the track name is selectable in the video but no actual subtitles appear. This also sometimes happens when adding a single subtitle track to an interactive video.

Detailed steps to reproduce the bug (exactly how and when did it happen)

  1. Edit settings for a h5p interactive video in moodle.
  2. Select text tracks then add tracks.
  3. Add .vtt file for the subtitles for track source.
  4. Save.
  5. Return to the video, select the subtitle track and see that no subtitles display.
  • Moodle version: 3.5.7
  • Desktop
  • Browers: Chrome, Firefox
  • H5P version: 1.17.2 2019031301
  • Interactive video 
BV52's picture

Hi Jake,

Please make sure that the source language is set to "lv" and the video is not coming from Youtube. I just did a test and it is working here.

-BV52

I was able to discover there was an issue with the .vtt file when it had been translated to lativian, there were spaces inbetween the timecodes and a dash was missing from the arrows between them. I also added numbering to match the english .vtt file which was working.

After fixing this the subtitles started working, it would be useful if H5P was able to notify the user that it can't display the subtitles properly but I understand if it's not possible to implement.

For anyone who's had this issue in the future, try editing the .vtt/.webvtt file to see if there's anything wrong with it.

BV52's picture

Hi Jake,

I'm glad you got it working and thank you for getting back to us. Your suggestion is also much appreciated.

-BV52