JW Player: Using Captions in a Playlist

To set up a playlist you need to create a XML document by following these instructions.

The XML code should then be modified to include references to the caption files, as shown in the example below. More information about adding captions in a playlist can be found here.

 

<rss version="2.0" xmlns:jwplayer="http://developer.longtailvideo.com/">
<channel>
<title>Example RSS playlist with captions</title>
<item>
      <title>My First Video</title>
      <description>This is the first video</description>
      <enclosure url="http://www.mysite.com/MYVIDEO-1.mp4" />
      <jwplayer:captions.file>http://www.mysite.com/MYCAPTIONSFILE-1.dfxp</jwplayer:captions.file>
</item>
<item>
      <title>My Second Video</title>
      <description>This is the second video</description>
      <enclosure url="http://www.mysite.com/MYVIDEO-2.mp4" />
      <jwplayer:captions.file>http://www.mysite.com/MYCAPTIONSFILE-2.dfxp</jwplayer:captions.file>
</item>
<item>
      <title>My Third Video</title>
      <description>This is the third video</description>
      <enclosure url="http://www.mysite.com/MYVIDEO-3.mp4" />
      <jwplayer:captions.file>http://www.mysite.com/MYCAPTIONSFILE-3.dfxp</jwplayer:captions.file>
</item>
</channel>
</rss>
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk