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

Forums

/

Problem with D-related combined with Viral Plugin

3 replies [Last post]

I have a lisenced player and I use the following syntax:

*********************************************************************************
var objPlayer = new SWFObject('<%=ResolveUrl("~") %>Video/player-licensed-viral.swf','ply','510','441','9','#ffffff');
objPlayer.addParam('allowfullscreen','true');
objPlayer.addParam('allowscriptaccess','always');
objPlayer.addParam('wmode','opaque');
objPlayer.addVariable('file',file);
objPlayer.addVariable('autostart','true');
objPlayer.addVariable('menu', 'false');
objPlayer.addVariable('logo', '<%=ResolveUrl("~") %>images/Logo510.png');
objPlayer.addVariable('skin', '<%=ResolveUrl("~") %>Video/stijl.swf');
objPlayer.addVariable('lightcolor','008FCB');
objPlayer.addVariable('plugins','viral-2');
objPlayer.addVariable('viral.functions','link,embed');
objPlayer.addVariable('viral.email_subject','MagnesiaNews - WebTv');
objPlayer.addVariable('viral.email_footer','');
objPlayer.addVariable('viral.oncomplete','false');
objPlayer.addVariable('plugins', 'drelated-1');
objPlayer.addVariable('drelated.dxmlpath', '<%=ResolveUrl("~") %>Video/GetRelatedVideos.ashx?FileId='+fileId);
objPlayer.addVariable('drelated.dposition','bottom');
// objPlayer.addVariable('drelated.dskin','skins/grayskin.swf');
objPlayer.addVariable('drelated.dtarget','_self');
objPlayer.write('mediaspace');

****************************************************************************************
Normaly viral plugin is enabled on pause of video and when i press the button menu of the player...
When i add D-Related plugin too , Viral becomes unaccesible as D-Related is enabled on pause and at the end of the video (is it possible to disable on pause function????) and also make menu button to dissaperare....

What can i do in ordet to enable viral on pause and d-related oncomplete of the video and to reappear the menu button ??

objPlayer.addVariable('plugins','viral-2,drelated-1');
From http://developer.longtailvideo.com/trac/wiki/FlashVars#API

plugins (undefined): a powerful new feature, this is a comma-separated list of swf plugins to load (e.g. yousearch,viral). Each plugin has a unique ID and resides at plugins.longtailvideo.com. Go to the LongTailVideo AddOns section to see all available plugins.

Thanks.
I tried that and the menu button re-appeared but when you press it both of plugins are trigered.. So in my situation it would be perfect if D-related plugin configured not to function on pause and on menu click but only at the end of the video...Is that possible?? I searched into documention for that kind of configuration unsuccessfully ..

Hi Krisiun,

D-related doesn't currently support this. Sorry!