<![CDATA[ FLV PLayer Embed Plugin code - My Forums]]> https://forums.modx.com/thread/?thread=31284 <![CDATA[Re: FLV PLayer Embed Plugin code]]> https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169163 http://www.longtailvideo.com/addons/plugins/47/Viral
]]>
bigbuddy Jan 15, 2010, 06:27 PM https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169163
<![CDATA[Re: FLV PLayer Embed Plugin code]]> https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169162
The functionality I am trying to add allows users to embed the video on their own sites.]]>
smcilreavy Dec 30, 2009, 09:20 AM https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169162
<![CDATA[Re: FLV PLayer Embed Plugin code]]> https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169161
maybe this helps "FlvPlayer 1.0" http://modxcms.com/extras/package/153]]>
anonymized-26931 Dec 30, 2009, 09:07 AM https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169161
<![CDATA[FLV PLayer Embed Plugin code]]> https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169160
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?

]]>
smcilreavy Dec 30, 2009, 09:04 AM https://forums.modx.com/thread/31284/flv-player-embed-plugin-code#dis-post-169160