
How to add subtitles in the playlist?
How to add subtitles in the playlist?
http://www.aliakrep.com/files/gfuyk.jpg
How to add subtitles in the playlist?
http://www.aliakrep.com/files/gfuyk.jpg
Example page : http://www.aliakrep.com/austin-and-ally-season-3-playlist/
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
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
Sorry the right syntax is :
<jwplayer:track file="spot1m10s.xml" label="Français" kind="captions" default="true" />
and defaut work now :-)
I can not. Did not you and your page is an example?
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>
Can you provide a link to your page? That syntax looks mostly correct, but I’d like to try to troubleshoot it -
-Cooper
http://www.aliakrep.com/files/aliakrep740/0_aliakrep-nosubtitle.html
http://www.aliakrep.com/files/aliakrep740/0_aliakrep-subtitle-dont-work.html
You have a missing comma after each "title" parameter - before the "tracks" parameter.
James Herrieven
"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/
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