Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Plugins with Playlist Support

This example demonstrates how to load a plugin that leverages the playlist functionality of JW Player.

The player displays a playlist with a number of videos. Each video includes a closed captions track, which is displayed through the Captions plugin.

The plugin in this example has one configuration option, to show the black background around the captions. The links to the various closed captions files are not included in the configuration. Instead, they are loaded through the playlist:

<rss version="2.0" 
  xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
  <channel>
    <title>Example RSS playlist with captions</title>

    <item>
      <title>Coronation Street</title>
      <description>This entry has external DFXP captions</description>
      <jwplayer:file>http://example.com/videos/7OCSON1y-393434.flv</jwplayer:file>
      <jwplayer:image>http://example.com/thumbs/7OCSON1y-480.jpg</jwplayer:image>
      <jwplayer:captions.file>http://example.com/captions/7OCSON1y.xml</jwplayer:captions.file>
    </item>

    <item>
      <title>Sintel (trailer)</title>
      <description>This entry has external SRT captions.</description>
      <jwplayer:file>http://example.com/videos/3XnJSIm4-364766.mp4</jwplayer:file>
      <jwplayer:image>http://example.com/thumbs/3XnJSIm4-480.jpg</jwplayer:image>
      <jwplayer:captions.file>http://example.com/captions/3XnJSIm4.xml</jwplayer:captions.file>
    </item>

    <item>
      <title>Big Buck Bunny (trailer)</title>
      <description>This entry has embedded MP4 captions.</description>
      <jwplayer:file>http://example.com/videos/aytCR4cx-393434.mp4</jwplayer:file>
      <jwplayer:image>http://example.com/thumbs/aytCR4cx-480.jpg</jwplayer:image>
    </item>

  </channel>
</rss>

The playlist is in RSS format and uses the jwplayer: extension to display the captions options.