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

Forums

/

Multiple Plug-In Implementation

1 reply [Last post]

Hi, I am having some issues with multiple plug-ins.

I am wanting to use the dsharing email plug in and also the embed code plug-in, however when I try and implement them, they seem to conflict, and the embed icon in the control bar turns into the link icon and the embed code is not shown but rather a link thing...

The code I am using is:

<script type="text/javascript" src="swfobject.js"></script>

<div id="player">This text will be replaced</div>

<script type="text/javascript">
  var so = new SWFObject('player.swf',
    'mpl','460','279','9');
  so.addParam('allowscriptaccess','always');
  so.addParam('allowfullscreen','true');

  var embedCode = escape('<embed src="player.swf" width="460" height="279" bgcolor="000000" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://www.critterproductions.co.uk/content/crittercrisp.flv&lightcolor=#EA393F&logo=http://www.critterproductions.co.uk/content/critterlogooverlay.png&plugins=embed-1,dsharing-1"></embed>');

  so.addParam('flashvars','&file=http://www.critterproductions.co.uk/content/crittercrisp.flv&lightcolor=#EA393F&logo=http://www.critterproductions.co.uk/content/critterlogooverlay.png&plugins=dsharing-1, embed-1&dsharing.sharetoolbar=false&dsharing.thumb=http://www.critterproductions.co.uk/content/critterlogooverlay.png&dsharing.skin=DSharingSample.swf&dsharing.mailaction=http://www.delfi.ee&dsharing.embedvalue=test&dsharing.label_link=Add to homepage&dsharing.label_name=Your name&dsharing.label_email=Your e-mail&dsharing.label_friend=Friends e-mail&dsharing.label_replay=Replay Video&dsharing.label_send=Send&dsharing.label_delete=Delete&autostart=true&embed.code='+embedCode);
  so.write('player');
</script>

Has anyone any experience of embedding multiple plug-ins had this problem and found a workaround?

@Ian,

The issue is that in player versions previous to 4.3, there was no addButton method for the control bar, so developers had to use some hackery to place buttons.

I've emailed the developer and proposed a solution, but in the meantime, perhaps the sharing plugin offers what you're looking for:

http://developer.longtailvideo.com/trac/wiki/PluginsSharing