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

AddOns

Basic Setup Using Links

Here is a basic setup of the Related plugin. When clicking the Related button, or when the video is ended, the thumbs pop up. When clicking a thumb, the user navigates to the play page of that video:

Instead of navigating to the play page, it is also possible to play the related video directly in the player. That's nice in case you want people to swiftly move from one video to the next. Simply set the onclick variable to play.

The RSS Feed

Here's the contents of the RSS feed that contains the related videos:

<rss version="2.0" xmlns:jwplayer="http://developer.longtailvideo.com/trac/">
  <channel>
    <item>
      <title>Big Buck Bunny</title>
      <link>http://bigbuckbunny.org/</link>
      <jwplayer:file>/videos/ntPYsD4L.mp4</jwplayer:file>
      <jwplayer:image>/thumbs/ntPYsD4L.jpg</jwplayer:image>
      <jwplayer:related.file>/related/blender.xml</jwplayer:related.file>
    </item>
    <item>
      <title>Elephants Dream</title>
      <link>http://elephantsdream.org/</link>
      <jwplayer:file>/videos/LJSVMnCF.mp4</jwplayer:file>
      <jwplayer:image>/thumbs/LJSVMnCF.jpg</jwplayer:image>
      <jwplayer:related.file>/related/blender.xml</jwplayer:related.file>
    </item>
    <item>
      <title>Sintel</title>
      <link>http://sintel.org/</link>
      <jwplayer:file>/videos/r3ABWwdO.mp4</jwplayer:file>
      <jwplayer:image>/thumbs/r3ABWwdO.jpg</jwplayer:image>
      <jwplayer:related.file>/related/blender.xml</jwplayer:related.file>
    </item>
  </channel>
</rss>

Note that loading of the related videos RSS feed is subject to crossdomain security restrictions. If your feed is on another domain than your player, you will have to use a proxy, crossdomain.xml or CORS setup.