On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • 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?

    • Hi smcilreavy,

      maybe this helps "FlvPlayer 1.0" http://modxcms.com/extras/package/153
      • No, This is the plugin I am already running.

        The functionality I am trying to add allows users to embed the video on their own sites.
        • I believe you need the viral plugin located here: http://www.longtailvideo.com/addons/plugins/47/Viral