Hi Guys,
Trying to get this embed plugin to work for the FLV PLayer. It Allows other people to Embed your videos on their site.
http://www.longtailvideo.com/AddOns/get-examples.html?addon=49&q=
This is the original code for the Flv player snippet
<script type="text/javascript">
var s1 = new SWFObject("’.$playerPath.’/player.swf","mediaplayer","’.$width.’","’.$height.’","7");
s1.addParam("allowfullscreen","’.$fullscreen.’");
s1.addVariable("width","’.$width.’");
s1.addVariable("height","’.$height.’");
s1.addVariable("file","’.$videoPath.’/’.$file.’");
s1.addVariable("plugins", "gapro-1");
s1.addVariable("gapro.accountid","UA-1558710-xx");
s1.addVariable("image","’.$videoPath.’/’.$image.’");
s1.addVariable("overstretch","’.$overstretch.’");
s1.write("’.$id.’");
</script>
<script type="text/javascript">
var s1 = new SWFObject("’.$playerPath.’/player.swf","mediaplayer","’.$width.’","’.$height.’","7");
s1.addParam("allowfullscreen","’.$fullscreen.’");
s1.addVariable("width","’.$width.’");
s1.addVariable("height","’.$height.’");
s1.addVariable("file","’.$videoPath.’/’.$file.’");
s1.addVariable("plugins", "gapro-1");
s1.addVariable("gapro.accountid","UA-1558710-xx");
var embedCode = escape("<embed src="http://www.longtailvideo.com/files/player.swf" width="470" height="320" bgcolor="000000" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://www.yoursite.com/videos.flv&plugins=embed-1"></embed>");
s1.addVariable("plugins", "embed-1");
s1.addVariable("embed.code", embedCode);
s1.addVariable("image","’.$videoPath.’/’.$image.’");
s1.addVariable("overstretch","’.$overstretch.’");
s1.write("’.$id.’");
</script>
The code in Green is functioning correctly and adding the embed window to the player.
However I need some assistance completing the code in red, especially the flashvars= bit. Has Anyone got this addon working in Modx before?