How to Add Captions and Subtitles to JW Player videos

Why add captions in JW Player?

JW Player offers significant customization options for caption formatting, including:

  • font
  • text color
  • caption size
  • font and background opacity
  • background color
  • styling (i.e. dropshadow, raised, embossed)

 

What caption format does JW Player require?

Since JW Player is an HTML player, it supports closed captions in WebVTT format. SRT files are also accepted, but WebVTT is preferable for its customization and display options.

 

Learn more about caption formats

 

How to use the HTML track element?

The track element can be used to add timed-text data enhancements like subtitles, closed captions, audio description, and chapter markers to your video. Note that multiple track elements can be used simultaneously.

The track tag should include the following elements:

File: the URL of your caption file
Label: a given title for the captions track
Default: specifies the track is enabled by default
Kind: optional, but can be used as an identifier if using multiple caption/subtitle tracks