JW Player 6 supports the rendering of closed captions or subtitles in the video display. These captions can be selected by viewers through the CC popup menu:

This guide explains how to add captions to your player embeds.
JW Player 6 supports captions in three formats:
VTT captions are preferred, since they are part of the HTML5 standard. JW Player supports all three formats across all browsers though, in both Flash and HTML5 mode. JW Player does not yet support captions on mobile devices (Android/iOS), since it's not yet possible to render them. This limitation will be removed when these devices support Text Tracks natively.
Note JW Player also supports captions, embedded as inline TX3G data. These captions are only supported in Flash mode though, and only for the MP4 and RTMP formats. We advise publishers to not use this format, except for embedding Closed Captions in live RTMP streaming. See Using RTMP Streaming for more info.
Here is an example VTT file containing three caption cues. As you can see, this format is easy to understand and can be authored with a simple text editor:
WEBVTT 00:00:12,000 --> 00:00:15,000 What brings you to the land of the gatekeepers? 00:00:18,500 --> 00:00:20,500 I'm searching for someone. 00:00:36,500 --> 00:00:39,000 A dangerous quest for a lone hunter. 00:00:41,500 --> 00:00:44,000 I've been alone for as long as I can remember.
Note your VTT files should be saved using UTF8 encoding in order to correctly display special characters (accents, but also e.g. Arab, Chinese, Russian). If these files are not stored and served using UTF8 encoding, rendering issues will almost certainly occur.
WebVTT captions can be embedded in a player by adding a tracks object inside the playlist object. Every entry has 4 properties:
Here is an example setup, using one video and two VTT files. The English captions will render by default:
jwplayer("myElement").setup({
playlist: [{
file: "/assets/sintel.mp4",
image: "/assets/sintel.jpg",
tracks: [{
file: "/assets/captions-en.vtt",
label: "English",
kind: "captions",
default: true
},{
file: "/assets/captions-fr.vtt",
kind: "captions",
label: "French"
}]
}]
});
Note that VTT files are subject to cross-domain security restrictions and therefore won't automatically load from another domain than the player. See Crossdomain File Loading for more info.
When loading RSS Feeds into a player, captions can be included using a <jwplayer:track> or a <media:subtitle> element. Here is an example feed, containing the same video and two VTT tracks as above:
<rss version="2.0" xmlns:media="http://rss.jwpcdn.com/" >
<channel>
<item>
<title>Sintel</title>
<description>Sintel is a fantasy CGI from the Blender Open Movie Project.</description>
<jwplayer:image>/assets/sintel.jpg</jwplayer:image>
<jwplayer:source file="/assets/sintel.mp4" />
<jwplayer:track file="/assets/sintel-en.vtt" label="English" kind="captions" default="true" />
<jwplayer:track file="/assets/sintel-fr.vtt" label="French" kind="captions" />
</item>
</channel>
</rss>
It is possible to change the styling of the captions using the captions options block of player setups. The following style properties can be set:
Here is an example setup where the captions are set in 20px red without a background:
jwplayer("myElement").setup({
playlist: [{
file: "/assets/sintel.mp4",
image: "/assets/sintel.jpg",
tracks: [{
file: "/assets/captions.vtt"
}]
}],
captions: {
back: false,
color: 'cc0000',
fontsize: 20
}
});
JW Player 6 does not yet support WebVTT cue settings (line, position, size, etc.), nor most WebVTT cue objects (class, ruby, timestamp, etc.). They will not break playback, but are simply ignored. However, some basic HTML tags are supported:
Here is an example VTT file with a few cues containing inline styles:
WEBVTT 00:00:08.000 --> 00:00:10.000 <b>Nothing</b> is going on. 00:00:10.500 --> 00:00:12.500 <font color="#3333CC">Violet, <i>please</i>!</font> - I am <font size="20" color="#FF0000"><u>not</u></font> your babe!
Note these HTML tags can also be used in SRT or DFXP files. DFXP-specific styling functionality is not supported though.