Demo: RSS Channel

Vodcast via RSS

This is the official UNICEF Vodcast channel catched via RSS and relayed by a feed proxy at projekktor.com to bypass security issues. The RSS itself is parsed client side within Projekktor using the "reelParser"-filtering method. Note the custom controls and the logo fading in as examples for the plugin interface.

The Code

<div id="player_a" class="projekktor" style="width: 100%;"></div>

<script type="text/javascript">
jQuery(document).ready(function($) {
    projekktor('#player_a', {
    height: 385,
    ratio: 16/9,
	enableNATIVEPlatform: false,
	playerFlashMP4: 'http://www.projekktor.com/wp-content/manual/jarisplayer.swf',
	playerFlashMP3: 'http://www.projekktor.com/wp-content/manual/jarisplayer.swf',
    plugin_display: {
           logoImage: "yourlogo.png"
    },
    skipTestcard: true,
    controls: true,
    playlist: [{0:{src:'http://www.projekktor.com/wp-content/manual/feedproxy.php?id=3', type:"text/xml"}}],
    reelParser: function(xmlDocument) {
        var result = {},
            itm=0;
        result.playlist = [];
        $(xmlDocument).find("item").each(function() {

        itm++;
        if (itm==1) return true; // temp "skiptestcard" error fix

        try {
            result['playlist'].push({
            0:{
                src:  $(this).find('enclosure').attr('url'),            
                type: $(this).find('enclosure').attr('type')            
                     },
            config: {
                poster: $(this).find('media\\:thumbnail').attr('url'),
                title: $(this).find('title').text(),
                desc: $(this).find('description').text()
            }
            });
        } catch(e){}
        });
        return result;
    } 
    });
 });
</script>