## Subtitle tracks

To add subtitles to your video, upload a VTT file to the file field, or
link to a VTT file when using a Link field. Enter the language name or
two-letter code in the description field. Use the English or local language
name.

README.md says "the file field", what I interpret as the same file field as the video file. The video field of the video module has no description field. I don't know how to fix that so here my feature request. If this missing feature is considered "by design", then pass this to the video project, but documentation should then at least mention incompatibility with the video module.

Comments

Jorrit’s picture

Subtitle support is still work-in-progress and it does not work with the video module, you're right about that.

RashDevel’s picture

How can I make Drupal link to my VTT file as a Track instead of as a video source type webm?
I've read through Hyside's post here: https://drupal.org/node/2096353 and it is a good write up.
However, it is not working for me:
First I upload an MP4.
Then I upload the .VTT file and in description put "EN". I've also tried "English" and many other combinations.

However, no matter what I've tried, I can't get Drupal to output the VTT file as type
with type txt/VTT. Instead the HTML is outputed like this:

<source src="video.mp4" type="video/mp4">
<source src="Testing_3.vtt" type="video/webm">

Am I missing something?

Jorrit’s picture

What version of the Video.js module are you using? Are you using it in combination with the Video module.

RashDevel’s picture

Thanks Jorrit - your question helped me work it out. I was using 7x-2.13! Changed to 7.x.3.1 and hey presto it worked as advertised.
I was not using video module either so I realized I posted this in the wrong place all together. Thanks for the answer! Seems like a cool module.

jmcpolin’s picture

I am having the same issues. Unfortunately I still cannot get the subtitles/captions to appear.

I have installed 7.x-3.0-alpha2, alongside both Video-JS 4.6.4. I have also tried video-js 4.0.0.

It is simply not appearing and I do know what what else to do. The video is displaying perfectly, and the skin has updated after installing the JS library, but no caption option.

Can anyone help?

Thank you.

jmcpolin’s picture

Issue summary: View changes

I got this working. Thanks.

I am unsure what the issue was, but I updated videojs (video-js-4.8.1) and someone resolved the issue. So in answer to my own question - yes, it worked out of the box (eventually...). Thanks again.

[Update - Subtitles not appearing on Internet Explorer, working on Chrome & Firefox. Also not appearing on iPad. Hopefully this will be updated in the near future.]

peterx’s picture

Documentation start: https://www.drupal.org/node/2370773
Please contribute.

peterx’s picture

Assigned: Unassigned » peterx
Status: Active » Needs review

Please check your test track file as described in the documentation. I will update the documentation if anything is unclear. For the next week, I can test on one version of one distribution of Linux and one version of that Microsoft OS.

mglaman’s picture

Status: Needs review » Active

There isn't a patch, moving back to active.

peterx’s picture

Assigned: peterx » Unassigned
jmcpolin’s picture

In relation to my post above subtitles are now working on IE 11.

However when I update video.js library from 4.8.1 to 4.12.1 they stop working on IE - so I have had to revert back...

Has anyone had any luck with captions/subtitles appearing on iPads? It is still not working for me - no button appearing.

Thanks,

jmcpolin’s picture

Hi, just checking and I still cannot get subtitles on an iPad - has no one else had this issue? Any help appreciated.

Thanks