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

How to add subtitles in the playlist?


How to add subtitles in the playlist?

http://www.aliakrep.com/files/gfuyk.jpg

11 Community Answers

aliakrep

User  
1 rated :

Example page : http://www.aliakrep.com/austin-and-ally-season-3-playlist/

Cooper Reid

JW Player Support Agent  
1 rated :

You can add subtitles by using the tracks block within each playlist item:

jwplayer(‘player’).setup({
playlist: [{
file: ‘video1.mp4’,
tracks: [{
file: “vtt/capt.vtt”,
label: “english”
}]
}, {
file: ‘video2.mp4’,
tracks: [{
file: “vtt/capt2.vtt”,
kind: “english”
}]
}]
});

Best Regards,
Cooper

philippe.cornet

User  
-1 rated :

You have to add some lines in your playlist (ie RSS) :

<jwplayer:track file="spot45s.xml" />
<jwplayer:track label="Français" />
<jwplayer:track kind="Sous-titres" />
<jwplayer:track default="true" />

But <jwplayer:track default="true" /> doesn't work :-(
Phil

philippe.cornet

User  
-1 rated :

Sorry the right syntax is :
<jwplayer:track file="spot1m10s.xml" label="Français" kind="captions" default="true" />

and defaut work now :-)

aliakrep

User  
1 rated :

I can not. Did not you and your page is an example?

aliakrep

User  
1 rated :

im using this code :
<div id='player_61'></div>
<script type='text/javascript'>
jwplayer('player_61').setup({
playlist: [{
image: ".jpg", file: ".smil", title: "Princesses - Prizes"
tracks: [{
file: ".vtt", label: "English"
}]
},{
image: ".jpg", file: ".smil", title: "Cupids - Cuties"
tracks: [{
file: ".vtt", label: "English"
}]
},{
image: ".jpg", file: ".smil", title: "Critics - Confidence"
tracks: [{
file: ".vtt", label: "English"
}]
},{
image: ".jpg", file: ".smil", title: "Beauties - Bullies"
tracks: [{
file: ".vtt", label: "English"
}]
},{
image: ".jpg", file: ".smil", title: "Videos - Villains"
tracks: [{
file: "mdj2lico.vtt", label: "English"
}],

height: 720,
width: 1280,
listbar: {
position: 'right',
size: 260
},
});
</script>

Cooper Reid

JW Player Support Agent  
1 rated :

Can you provide a link to your page? That syntax looks mostly correct, but I’d like to try to troubleshoot it -
-Cooper

aliakrep

User  
0 rated :

http://www.aliakrep.com/files/aliakrep740/0_aliakrep-nosubtitle.html
http://www.aliakrep.com/files/aliakrep740/0_aliakrep-subtitle-dont-work.html

jherrieven

User  
1 rated :

You have a missing comma after each "title" parameter - before the "tracks" parameter.

James Herrieven

aliakrep

User  
1 rated :

"You have a missing comma after each "title" parameter - before the "tracks" parameter.
James Herrieven"

it works thanks man.

and im find subtitle color work playlist.

http://www.aliakrep.com/austin-ally-season-3-playlist/

Cooper Reid

JW Player Support Agent  
0 rated :

You have syntax errors in your code. Please open your JavaScript console to get a verbose explanation of how/where the bugs are in your code.
Cooper

This question has received the maximum number of answers.