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

CAption


Hi, i work with jwplayer 6 & 7 version.i am able to load the video player but not able to show the caption in VTT format.

i am able to load the cc button but not able to retrieve the caption file.

Here is my code.:
This is my folder: D:\MyTest\jwplayer-7.2.2

<script type = "text/javascript" src = "D:\MyTest\jwplayer-7.2.2\jwplayer.js"></script>

<div id = "myElement"> Loading the jwpalyer7....</div>
<script type ="text/javascript">
jwplayer("myElement").setup({
playlist: [{
file: "D:/MyTest/jwplayer-7.2.2/MUNA.mp4",
titile: "My file",
width: 682,
height: 239,
tracks: [{
file: "D:/MyTest/jwplayer-7.2.2/upc-video-subtitles-en.vtt",
label: "English",
kind: "captions",
"default": true

}]
}]
});
</script>

1 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

The player does not work with absolute paths from your computer, such as how you are doing. This may work if your HTML is saved inside of your jwplayer-7.2.2 folder, in which case you can change all of your paths to be relative to where the HTML file, so it would make your setup like this:

<script type="text/javascript" src="jwplayer.js"></script>

<div id="myElement"> Loading the jwpalyer7....</div>
<script type="text/javascript">
  jwplayer("myElement").setup({
    playlist: [{
      file: "MUNA.mp4",
      titile: "My file",
      width: 682,
      height: 239,
      tracks: [{
        file: "upc-video-subtitles-en.vtt",
        label: "English",
        kind: "captions",
        "default": true
      }]
    }]
  });
</script>

If that still doesn’t work, I would recommend downloading and installing a local web server that you can use to try to get the page to work. One application that is popular is MAMP.

Thank you.

This question has received the maximum number of answers.