Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Captions Not Working


Have you guys noticed that closed captioning isn't working in the 6.2 or 6.3 versions of the player?

I thought it was just on my end and went on a tear for hours trying to track the cause of the problem down, but everything was set up correctly on my side (far as I could tell). However when I visited LongTail's own support documentation on Text Tracks (http://www.longtailvideo.com/support/jw-player/29360/basic-vtt-captions) I noticed it wasn't working there either.

Problem on your end or did something break in these latest versions?

41 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

http://www.longtailvideo.com/support/jw-player/29360/basic-vtt-captions

Works fine here.

JW Player

User  
0 rated :

doesn't work for me

Ethan Feldman

JW Player Support Agent  
0 rated :

What OS / Browser? You do need to click the CC icon and select a caption though…

JW Player

User  
0 rated :

Hi, Ethan,

Nope I'm not seeing it either on my site nor on yours (URL referenced above). Neither the "CC" button nor the captions themselves show up (if forced).

Not working in ANY browser I use on Windows 8. Chrome, IE10, FF, etc.

/j

JW Player

User  
0 rated :

Check this screenshot: http://sdrv.ms/YekXXO

This was taken from your captions documentation page: http://www.longtailvideo.com/support/jw-player/29360/basic-vtt-captions

Note the lack of "CC" button on the playback bar. This is what I see everywhere there should be captions, both on my site an yours.

JW Player

User  
0 rated :

FWIW, I tested on OSX Snow Leopard and they aren't working there either. So i don't think it's an OS issue.

Ethan Feldman

JW Player Support Agent  
0 rated :

Strange, I see this – http://oi46.tinypic.com/20l4dg.jpg

Ethan Feldman

JW Player Support Agent  
0 rated :

I have a Mac as well. Perhaps something in your network??

JW Player

User  
0 rated :

I'm using win 7 with chrome - cc button invisible.
with firefox it works

Ethan Feldman

JW Player Support Agent  
0 rated :

Ok, I see it now, we will take a look.

JW Player

User  
0 rated :

RE: The Network question. I've tested in two different locations. Doesn't work in either.

Thanks for looking into it.

JW Player

User  
0 rated :

Another problem in your documentation.
http://www.longtailvideo.com/support/jw-player/29254/sd-and-hd-qualities-in-rss
the address of the rss should be http://www.longtailvideo.com/sites/default/files/qualities-playlist.xml

Ethan Feldman

JW Player Support Agent  
0 rated :

@Jack – Np. I have forwarded this along.

@Ben – Thanks, I have forwarded this along as well.

JeroenW

JW Player Support Agent  
0 rated :

I fixed the issue with the RSS example – thanks for noting.

The VTT example is a bit more strange, there seems to be an issue with some of the Drupal javascript on our support site. For now, the examples work by using Flash as primary instead of HTML5…

JW Player

User  
0 rated :

Hi, Jeroen,

I actually _was_ testing it with Flash as my primary on my end. (As a matter of course, we default to Flash and fallback to HTML5.) Still not working.

JW Player

User  
0 rated :

Its not working for me as well.

JW Player

User  
0 rated :

Not working for me either ( version 6.3.3242...). Any news on this issue?

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

Hi Ethan,

I assume the "Do you have a link" question was directed to me.

I am using JwPlayer to play mp3 files. I wanted to show the title of file that was playing and the easiest way, I thought, was using the CC feature. So, I set up a test case using the example shown in:

http://www.longtailvideo.com/support/jw-player/29360/basic-vtt-captions

No matter what I did, the feature did not even turn the CC button on.

So I went a different route and set up a one field form that I update when the user selects an mp3 file.

Let me know if you need me to set up my test case again for you to debug.

Thank you.

Ethan Feldman

JW Player Support Agent  
0 rated :

The link you provided is our example, and it works for me though?

JW Player

User  
0 rated :

Ethan,

I recreated my test case. The CC button appears but the captions do not.
Do I need to buy a license for it to work?

Try
http://www.tlclehighton.com/mycaptions.asp

Ethan Feldman

JW Player Support Agent  
0 rated :

No you don’t need a license. I would host the VTT file on your server though.

JW Player

User  
1 rated :

I finally figure out why captions were not working for me.

The remote IIS server I am using is not set up to serve vtt files.
I discovered that, when I tried to access the vtt file through the browser, and I got a file not found (404) error even though it was in the same directory as the html that called it.

So I set up a local IIS server which allowed me to serve vtt files. But then I discovered that there were a couple of facts about the use of CC files that I did not know:

1 - The cc file must be UTF-8 encoded. In my case I had saved the file as an ANSI file which is Notepad's default. So, I opened the file and did a "Save As" using the UTF-8 encoding option.

2 - A mime type of text/vtt, has to be added to the server's mime type list. Oddly enough in my case, my local IIS server did not require a mime type but the Apache server did.

Now CC is working on my local servers.

As to my remote server, the use of XML instead of vtt circumvents the need for any configuration changes and it works very well.

Ethan Feldman

JW Player Support Agent  
0 rated :

Glad you got it, thanks for sharing.

JW Player

User  
0 rated :

Hi everybody,
Sometime, my player miss caption, i don't know why.
I use version 5.9
You can check for me ( if you watch movie, can have caption, but somtime don't have):
http://www.azfun.net/movies/watch/797?1368273488

JW Player

User  
0 rated :

I'm using win 7 with chrome - cc button works.
but with firefox it not works

Ethan Feldman

JW Player Support Agent  
0 rated :

I can’t get your stream to play at all actually?

JW Player

User  
0 rated :

Ethan,
Can you try again with other movie:
http://www.azfun.net/movies/watch/613?Comedy-The-Hot-Chick-2002

Sometime, CC button not works in my computer, but it works with other computer. And i don't know reasons.
Thank' you very much!

My script:
$(document).ready(function () {
$.extend({
initialize: function () {
window.top.location.search.replace(/??(?:([^=]+)=([^&]*)&?)/g, function () {
if (arguments[1] == "config") {
$("#setupOptions").val(decodeURIComponent(arguments[2]))
}
})
},
setupPlayer: function () {
var defaults = {
modes: [{
type: "flash",
src: "http://www.azfun.net/pl/player.swf"
}, {
type: "html5"
}, {
type: "download"
}, {
type: "StreamOcean"
}
],
width: "998",
height: "500",
file: "https://www.youtube.com/watch?v=PT0Ayzpl9Tc",
image: "http://i.ytimg.com/vi/PT0Ayzpl9Tc/mqdefault.jpg",
provider: "youtube",
"captions.file": "http://azfun.net/sub/product/29/613/613_eng.srt",
skin: "http://www.longtailvideo.com/files/skins/carbon/5/carbon.zip",
plugins: "captions-1,audiodescription-1,hd-1"
};
$("#preview_tubenosub").css("height", defaults.height);
$("#preview_tubenosub").html('<div id="container"></div>');
var optionText = $("#setupOptions").val();
var evalOptions;
try {
evalOptions = optionText ? eval("(" + optionText + ")") : undefined
} catch (e) {
optionText = decodeURIComponent(optionText);
evalOptions = optionText ? eval("(" + optionText + ")") : undefined;
$("#setupOptions").val(optionText)
}
if (optionText && typeof evalOptions == "undefined") {
alert("Error parsing options");
return
}
var options = $.extend({}, defaults, evalOptions);
jwplayer("container").setup(options)
}
});
var $_GET = {};
$.initialize();
$.setupPlayer();
$.setupForm()
})

Ethan Feldman

JW Player Support Agent  
0 rated :

You need a crossdomain.xml file here – http://azfun.net/crossdomain.xml

Reference – http://www.longtailvideo.com/support/jw-player/28844/crossdomain-file-loading

JW Player

User  
0 rated :

Hi --

I am not able to get captions to work. I am using DFXP captions and have tried it to view on Firefox, Safari, and Chrome without luck. The video is playing just fine and the "CC" button is there, defaulted to English, but it doesn't seem to be pulling my file. I haven't been able to find anything wrong with my XML file, but perhaps that is the problem.

I also have not installed a cross-domain file, since I am self-hosting. Might that be the problem? Let me know if I should try that.

Here is the link for my page:
http://www.mediaed.org/captions/index.htm

This is my code:
<div id='my-video'></div>
<script type='text/javascript'>
jwplayer("my-video").setup({
playlist: [{
file: "http://d30hais5j1c2li.cloudfront.net/TheRaceForWhatsLeft.mp4",
image: "http://www.mediaed.org/captions/RaceForWhatsLeft_Still.png",
tracks: [{
file: "http://www.mediaed.org/captions/TheRaceForWhatsLeft_Captions.xml",
label: "English",
kind: "captions",
default: "true"
}]
}]
});
</script>

Thank you very much for your assistance!

Ethan Feldman

JW Player Support Agent  
0 rated :

Hm, this looks set up ok, please leave this up so we can debug.

JeroenW

JW Player Support Agent  
0 rated :

Looks like the issue is with the “begin” and “end” attributes of cues. The way they’re setup (e.g. 00:00:11:09), they are parsed as starting on 11 minutes and 9 seconds. I’m not sure what unit the last “:09” is (frames?), but if you can convert those to milliseconds (00:00:11.300) JW Player will play the file just fine.

Other options are using the SRT or VTT file format.

JW Player

User  
0 rated :

Per my post above, I installed the crossdomain.xml file at
http://mediaed.org/crossdomain.xml. It hasn't affected my ability to see the captions.

Thank you!

JW Player

User  
0 rated :

Oh, great. Thank you, JeroenW -- I will try that!

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, the crossdomain.xml is set up fine.

JW Player

User  
0 rated :

Okay, that worked! Thank you very much.

Now, I have one much smaller question. The "|" is not telling the player to insert a line break. I tried changing that to the html <br> or <br/> and the captions stopped displaying as soon as I did that.

Any other ideas of how to indicate a line break?

Ethan Feldman

JW Player Support Agent  
0 rated :

I will ask about these.

JW Player

User  
0 rated :

Hi Ethan --

It seems to be working now with <br/>. I am not sure what I had done differently before, but I must have had some small error somewhere. I'll let you know if it happens again.

Thank you the quick and helpful assistance. I appreciate it!

Ethan Feldman

JW Player Support Agent  
0 rated :

Awesome, np!

JW Player

User  
0 rated :

So helpful for me, Ethan.
Thank you very much :)

Ethan Feldman

JW Player Support Agent  
0 rated :

Np :)

This question has received the maximum number of answers.