-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtitles not working on video.js #809
Comments
So the video itself is working fine for me, but I am getting getting an error in the console when I try to activate the subtitles. There are a few minor issues with your WebVTT file, so make sure it passes validations and see if that fixes the issue. Essentially, this is what your file should look like to be valid:
|
First, thx for the responed! |
Hmm. |
well, I ran into problems myself. nothing worked. out of desparation, i just copied your html, refreshed the links and uploaded it to my server. guess what? subtitles don't work: http://dm.golovtchiner.de/media/videojs.html what am I missing?! |
after banging my head against the wall, finaly found the solution: it does not work, if you embed the player from a remote site. |
Do you mean that you're embedding the player via an iframe from another domain or something? If so, it makes sense, captions need correct CORS headers for that other domain to be able to pick it up. |
haha, no. i did the mistake to embed it, like the official site told me to: by linking those in the head tag |
Subtitles being loaded from another domain is a known limitation. Sorry you had to dig to find that. It used to be called out in the embed builder at least, and needs to be added to the docs. Loading the player javascript from a remote domain shouldn't be an issue, as long as the subtitles file is on the same domain as the html page it's being loaded into. In your last example that's not the case. The HTML page is golovtchiner.de and the subtitles file is on mblx.hu. |
Yes, please update the doc ! I spent two hours trying to understand why the subtitles weren't working, it's because it need to be on the same server serving the html. |
I'm very sorry, I have not worked default subtitle |
I tryed make subtiltes for a video,but not working on the player.
You can see what happen in here:
http://neocsatblog.mblx.hu/embeds/biber.php
My .vtt file place:
http://www.neocsatblog.mblx.hu/embeds/srts/eng/alive.vtt
You see?
Only one thing visible, the loading image...
The text was updated successfully, but these errors were encountered: