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

Forums

/

viral rtmp recommendations? specific to each track

6 replies [Last post]

Hi,

I have just started experimenting with the viral plugin - concept sounds great. There are a few questions I have.

1) Can we set/update viral parameters for each individual track? (Recommendations, link, embed code), or does it have to be for the playlist as a whole?
2) Can the recommended playlist xml include rtmp links? If so, what is the format? Or do they have to be progressive download http links?

Any help with these items would be much appreciated. Thanks!

I did a few tests with putting the viral parameters in a playlist. The parameters were loaded into the playlist, but the player didn't use them. I am guessing that the viral plugin isn't programmed to get new parameters from each track. I couldn't find the source code for the viral plugin to confirm this.

The recommended playlist could be RTMP streamed files, but you can't change the streamer flashvar without re-instantiating the player. Jeroen has posted that a future version will allow the streamer flashvar to be put into a playlist, so it could be different for each track or playlist.

thanks kLink. I understand currently we can't change the streamer flashvar without re-instantiating the player, though I'm really looking forward to that feature!

Quick question, can you point me to an example media rss file that makes use of rtmp links?
I did find: http://www.jeroenwijering.com/?thread=9074
but I think that is for xml files only and not specific to the media rss format?

I took a look at the example media rss feed http://www.jeroenwijering.com/upload/mrss.xml
Assuming the rtmp streamer value is already defined in the player, could I just place the "location" value in place of the "http url" (as below)

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Example media RSS playlist for the JW Player</title>
<link>http://www.jeroenwijering.com</link>

<item>
<title>Big Buck Bunny - FLV Video</title>
<link>http://www.bigbuckbunny.org/</link>

<description>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</description>
<media:credit role="author">the Peach Open Movie Project</media:credit>
<media:content url="bunny.flv" type="video/x-flv" duration="33" />
</item>

<item>
<title>Big Buck Bunny - MP3 Audio with thumb</title>
<link>http://www.bigbuckbunny.org/</link>

<description>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</description>
<media:credit role="author">the Peach Open Movie Project</media:credit>
<media:content url="bunny.mp3" type="audio/mpeg" duration="33" />
<media:thumbnail url="http://www.jeroenwijering.com/upload/bunny.jpg" />
</item>

<item>
<title>Big Buck Bunny - PNG Image with start</title>

<link>http://www.bigbuckbunny.org/</link>
<description>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</description>
<media:group>
<media:credit role="author">the Peach Open Movie Project</media:credit>
<media:content url="bunny.flv" type="video/x-flv" duration="20" start="10" />
</media:group>
</item>

</channel>
</rss>

Your expert assistance would be highly appreciated!

Here is the rss file I am using. It is validating, but for some reason there are no recommended items appearing under the viral plugin:

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Recommended Videos</title>
<description>Recommended Videos from BCCI.tv</description>
<link>http://www.bcci.tv/</link>

<item>

<title>Man of the match: Mahendra Dhoni</title>

<link>http://www.bcci.tv/Man-of-the-match-Mahendra-Dhoni.html</link>
<description>India - Australia 2nd Test, Mohali</description>
<media:credit role="author">Cricket.com</media:credit>
<media:content url="rtmp://cp51109.edgefcs.net/ondemand/videos/BCCI/Ind_Aus_2008/2nd_Test/Day5/TEST2_IND_AUS_MANOFTHEMATCH_DHONI.flv" type="video/x-flv" duration=""/>
<guid>http://www.bcci.tv/Man-of-the-match-Mahendra-Dhoni.html</guid>
<media:thumbnail url= "http://www.bcci.tv/media/images/Placeholder_Images/ind_au_2008.jpg"/>

</item>

<item>

<title>Sachin being honoured for his world record - Day5</title>

<link>http://www.bcci.tv/Sachin-being-honoured-for-his-world-record.html</link>
<description>India - Australia 2nd Test, Mohali</description>
<media:credit role="author">Cricket.com</media:credit>
<media:content url="rtmp://cp51109.edgefcs.net/ondemand/videos/BCCI/Ind_Aus_2008/2nd_Test/Day5/TEST2_IND_AUS_PRESENTATION_SACHIN.flv" type="video/x-flv" duration=""/>
<guid>http://www.bcci.tv/Sachin-being-honoured-for-his-world-record.html</guid>
<media:thumbnail url= "http://www.bcci.tv/media/images/Placeholder_Images/ind_au_2008.jpg"/>

</item>

<item>

<title>Interview with Ponting - Day5</title>

<link>http://www.bcci.tv/Interview-with-Ponting.html</link>
<description>India - Australia 2nd Test, Mohali</description>
<media:credit role="author">Cricket.com</media:credit>
<media:content url="rtmp://cp51109.edgefcs.net/ondemand/videos/BCCI/Ind_Aus_2008/2nd_Test/Day5/TEST2_IND_AUS_PRESENTATION_PONTING.flv" type="video/x-flv" duration=""/>
<guid>http://www.bcci.tv/Interview-with-Ponting.html</guid>
<media:thumbnail url= "http://www.bcci.tv/media/images/Placeholder_Images/ind_au_2008.jpg"/>

</item>
</channel>
</rss>

This is the code I'm using for my player:

var so = new SWFObject('http://www.bcci.tv/assets/templates/js/mediaplayer.swf','mpl','450','480','9');

so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');

so.addVariable('file','http://www.bcci.tv/index.php?id=10091');
so.addVariable('fullscreen', 'true')
so.addVariable('playlist', 'bottom')

so.addParam("wmode","transparent");
so.addParam("allowScriptAccess", "always");
so.addParam("allownetworking", "all");
so.addVariable("channel", "2519");
so.addVariable("plugins", "ltas");
so.addVariable("streamer","rtmp://cp51109.edgefcs.net/ondemand/videos/BCCI/");
so.addVariable('abouttext', 'Board of Control for Cricket in India');
so.addVariable('stretching', 'exactfit');
so.addParam('bgcolor', '#ffffff');
so.addVariable('skin', 'http://www.bcci.tv/assets/templates/ftKxEWFw.swf');
so.addVariable('playlistsize', '180');
so.addVariable('aboutlink', 'http://www.thebcci.com');
so.addVariable("repeat","list");
so.addVariable("plugins",'googlytics-1,viral-1');
so.addVariable("viral.functions",'link,recommendations');
so.addVariable("viral.recommendations",'http://www.bcci.tv/index.php?id=10681');
so.addVariable("viral.onPause",'true');
so.write("mediaspace");

Any thoughts?

I'm having the same issue. My recommendations aren't showing up...even when I try to use JW's at http://www.jeroenwijering.com/upload/mrss.xml.

Hi there -

This turns out to be a typo in the flashvar names. A fix will be released soon, but in the meantime, this problem can be fixed using the following flashvars:

so.addVariable("viral.functions",'link,recommendation');
so.addVariable("viral.recommendation",'http://www.jeroenwijering.com/upload/mrss.xml.');

(i.e. "recommendation" instead of "recommendations")

neither works for me

when will the fix be released?