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

probleme with caption


i was testing the caption in the last hours but it doesn't show i still us the jw player from my computer
itest the vtt and srt but both not working they just show the cc button on the player but whene i click on it nothing happend here is the code
<script type="text/javascript">
jwplayer("myElement").setup({
image: "test.png",
sources: [{
file: 'http://www52.uptobox.com/stream/2ils3p70fd/360/0',
type: 'mp4',
label: "360p"
},{
file: 'http://www52.uptobox.com/stream/2ils3p70fd/480/0',
type: 'mp4',
label: "480p"
},{
file: 'http://www52.uptobox.com/stream/2ils3p70fd/720/0',
type: 'mp4',
label: "720 HD"
}],
logo: {
file: 'test2.png',
link: 'http://example.com'
},
skin: "bekle",
tracks: [{
file: "test.vtt"
}]
});
</script>

5 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hi,
I’ll need to see your VTT file to make sure it’s formatted correctly. For an example of proper structure, you can refer here: http://support.jwplayer.com/customer/portal/articles/1407438-adding-closed-captions
-Cooper

mo4vies

User  
0 rated :

here is the file i copied from the jw website


WEBVTT

00:00:01,000 --> 00:00:20,000
What brings you to the land
of the gatekeepers?

00:00:21,500 --> 00:00:55,500
I'm searching for someone.

00:00:56,500 --> 00:02:39,000
A dangerous quest for a lone hunter.

00:02:41,500 --> 00:58:44,000
I've been alone for as long
as I can remember.

Cooper Reid

JW Player Support Agent  
0 rated :

Hi -

That looks correct to me. Do you see any errors in your js console or your network tab? Can you provide a link to your page?

-Cooper

mo4vies

User  
0 rated :

i still test the player on my computer the caption button show when i click on it noting happend but when i use this url in caption it work but only this one . i got it from the code source of jw player weree they explain how to use caption
http://assets-jp.jwpsrv.com/tracks/2UEDrDhv.txt
it's weird

Cooper Reid

JW Player Support Agent  
0 rated :

Please make sure there are no failed requests and that the file is accessible in the browser -
Cooper

This question has received the maximum number of answers.