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

AddOns

Playlist Example of the Sharing Plugin

This configuration uses a playlist in combination with the Sharing plugin. For each video, a different Embed code and Video Link is displayed:

The playlist

As you can see, the embed code does not contain any options for the sharing plugin. The plugin is only getting loaded. Instead, the options are inside the playlist:

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

        <item>
            <title>Sintel</title>
            <description>Sintel is a fantasy CG movie, the third production from the Blender Institute.</description>
            <enclosure url="http://content.bitsontherun.com/videos/yj1shGJB-60830.mp4" />
            <jwplayer:image>http://content.bitsontherun.com/thumbs/yj1shGJB-480.jpg</jwplayer:image>
            <jwplayer:sharing.code><![CDATA[<embed src="http://video.longtailvideo.com/players/yj1shGJB-ALJ3XQCI.swf" width="480" height="270" allowfullscreen="true" />]]></jwplayer:sharing.code>
            <jwplayer:sharing.link>http://durian.blender.org</jwplayer:sharing.link>
        </item>

        <item>
            <title>Big Buck Bunny</title>
            <description>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.</description>
            <enclosure url="http://content.bitsontherun.com/videos/nPripu9l-60830.mp4" />
            <jwplayer:image>http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg</jwplayer:image>
            <jwplayer:sharing.code><![CDATA[<embed src="http://video.longtailvideo.com/players/nPripu9l-ALJ3XQCI.swf" width="480" height="270" allowfullscreen="true" />]]></jwplayer:sharing.code>
            <jwplayer:sharing.link>http://www.bigbuckbunny.org</jwplayer:sharing.link>
        </item>

    </channel>
</rss>

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

Instead of using an RSS feed, a playlist (including plugin options) can be defined as an inline JSON object.