Is there any option to activate subtitles in youtube video using interactive video?
Thu, 01/26/2017 - 00:50
Not yet, but a solution can be seen on the horizon.
Mon, 07/10/2017 - 11:01
great to hear. Can you tell anything about when this will be propably available?
Mon, 07/10/2017 - 11:06
It has already been around for quite some time now :-) Just get the latest updates and enjoy.
Sun, 07/01/2018 - 01:41
Can you explain how to enable captions on youtube videos? I am using InteractiveVideo version 1.17.5 and I don't see a way to display captions on YouTube videos.
Sun, 07/01/2018 - 13:04
You'll have to add the captions on YouTube.
Tue, 07/03/2018 - 18:03
The youtube video does have captions - here's a screencast showing the H5P interactive video widget (note lack of caption option), followed by viewing the video directly in YouTube, which then does have the CC closed caption option. I don't see a method to enable captions via H5P.
Tue, 07/03/2018 - 18:08
Unfortunately, YouTube does not serve the automatically created captions to external players. You'll have to manually create the captions for the specific language on YouTube -- which will be filled with the automatic transcript by default AFAIR. Done in 2 minutes.
Tue, 07/03/2018 - 18:43
Thank you, that works. Is this documented some place? I would like to update our production notes to include this.
I'm assuming that there isn't a way to automate the generation of the "manually created" captions.
Wed, 07/04/2018 - 04:33
I'm afraid there isn't a documentation for this. We try to create as much documentation as we can although there is a challenge in keeping them up to date.
You are correct it is not possible to automate the creation of the captions.
Thu, 07/05/2018 - 18:12
I wrote a small python program that downloads all the SRT captions from videos in a specified playlist and captures them to files with a directory structure reflecting the video names (see attached). It also generates a script that uses the "captions.py" program from the sample youtube API scripts ( https://github.com/youtube/api-samples ) to upload modified SRT captions. Just doing the download and then uploading provides a caption file other than the automatically generated version and that version will appear in H5P. This might be useful for others in a similar boat.
However, working on this begs the question - the auto-generated version does appear in the caption API. Their "isCC" property is False (indicating not closed caption) which is why I suspect they don't appear in the captions list. However, their "trackKind" property is ASR (automatic speach recoginition). It may be a useful addition to use the ASR track if there are no others
I looked at the h5p-interactive-video plugin code but am not that familar with js or h5p source, so didn't see if this was an obvious/easy change or not.
Wed, 05/01/2019 - 23:16
I'm trying to solve the same problem. I have YouTube videos with captions and I can download a transcript file, but when I create an H5P interactive video, I am not able to upload the transcript (.vtt) file since the upload dialog for Text Tracks says "unsupported for YouTube videos". Could you explain in a little more detail what you mean by "manually create the captions" and how they will be "filled with the automatic transcript"?
Thu, 05/02/2019 - 06:33
Please check my answer here.
Thu, 07/05/2018 - 19:37
Thanks for your hints, but the YouTube Data API is not the same as the YouTube (Player) IFrame API. The latter does not offer a way to retrieve the auto generated subtitles.
Thu, 05/02/2019 - 18:52
Yes, I am able to add captions to my YouTube video, but when I embed my YouTube video in the H5P Interactive Viedo activity, the captions are disabled.
I've attached two screen-shots. The first one shows my video on the YouTube page with the cc button visible and the captions being displayed. The second one shows my video embedded in H5P in a Moodle activity and as you can see there are no captions and the cc button is not visible. Is there a way to change the behavior of H5P so that the YouTube captions are enabled?
Mon, 05/06/2019 - 04:38
I tried checking this in my Moodle as well and the CC is working. Would you mind checking if you have any errors in the browser console?
Tue, 05/07/2019 - 00:00
Our Moodle system administrator found a solution: The H5P video player can currently only detect if subtitles exist if YouTube subtitles are turned on by default. In other words, h5p can’t trigger youtube to display the captions if youtube doesn’t first indicate that captions are available (chicken and egg problem).
Tue, 05/07/2019 - 05:24
I'm glad this is now working and thank you for getting back to us with your solution.
Connect with H5P
H5P is a registered trademark of Joubel