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

Forums

/

'related videos plugin' in the SWFObject code?

3 replies [Last post]

I am trying to enable the 'related videos plugin' in my SWFobject code below:

<script type='text/javascript' src='{$baseurl}/js/swfobject.js'></script>
<div name="mediaspace" id="mediaspace">This will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('{$baseurl}/player/jwflvplayer.swf','player','590','367','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam("wmode","transparent");
so.addVariable("plugins", "ltas");
so.addVariable("channel", "7602");
so.addVariable('file', encodeURIComponent('{$baseurl}/YouTube_Multi-Format.php?v={$videos.videoservercode}&fmt=18'));
so.addVariable('plugins', 'drelated-1');
so.addVariable('drelated.dxmlpath', '{$baseurl}/playlist.php?title={$videos.title}&tags={section name=t loop=$tags}{$tags[t]} {/section}');
so.addVariable('drelated.dposition','bottom');
so.addVariable('drelated.dskin','{$baseurl}/skins/grayskin.swf');
so.addVariable('drelated.dtarget','_self');
so.addVariable('type', 'video');
so.addVariable('skin', '{$baseurl}/player/Snel.swf');
so.addVariable('image', '{$big_thumb}');
so.addVariable('logo', '{$baseurl}/player/mini_logo.png');
so.addVariable('stretching', 'fill');
so.addVariable('autostart', 'true');
so.write('mediaspace');
</script>

The related videos plugins isn't in the above code, but I tried it, it just doesn't get shown. It works flawlessly in my object code that starts with <embed

I wonder if there's a way to enable 'related videos plugin' for the SWFObject code? I use SWFObject code to display Youtube HD (MP4) videos using the 'encodeURIComponent' function.

The only "related videos plugin" that I see at Longtail Video is the D-Related plugin, which you have in your code posted above.

What is the "related videos plugin" that you are referring to?

I was referring to the D-related plugin. thanks

    <script type='text/javascript'>
      var so = new SWFObject('{$baseurl}/player/jwflvplayer.swf', 'player', '590', '367', '9');
          so.addParam('allowfullscreen',        'true');
          so.addParam('allowscriptaccess',      'always');
          so.addParam('wmode',                  'transparent');
          so.addVariable('file',                 encodeURIComponent('{$baseurl}/YouTube_Multi-Format.php?v={$videos.videoservercode}&fmt=18'));
          so.addVariable('type',                'video');
          so.addVariable('image',               '{$big_thumb}');
          so.addVariable('channel',             '7602');
          <strong>so.addVariable('plugins',             'ltas,drelated-1);</strong>
          so.addVariable('drelated.dxmlpath',   '{$baseurl}/playlist.php?title={$videos.title}&tags={section name=t loop=$tags}{$tags[t]} {/section}');
          so.addVariable('drelated.dposition',  'bottom');
          so.addVariable('drelated.dskin',      '{$baseurl}/skins/grayskin.swf');
          so.addVariable('drelated.dtarget',    '_self');
          so.addVariable('skin',                '{$baseurl}/player/Snel.swf');
          so.addVariable('logo',                '{$baseurl}/player/mini_logo.png');
          so.addVariable('stretching',          'fill');
          so.addVariable('autostart',           'true');
          so.write('mediaspace');
    </script>