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

Forums

/

Hosting plugins locally?

7 replies [Last post]

Why are the plugins hosted from longtailvideo? Isn't there any way of hosting them locally instead? The current implementation introduces a point of failure that is out of our control and makes us reluctant to implement the plugins.

The plugins are hosted @ longtailvideo, so there's one central repository and everybody can immediately turn on a plugin. We use Amazon S3, so the performance and uptime should be perfect.

That said, you can of course create your own plugin repository. Therefore you need to change one line in the code: the "basedir" variable in the SPLoader.as. Set it to the location you want to host your plugins and re-publish the swf file.

@Jeroen,

It would be nice if you made the plugins hosted on longtail available for download so that we would have those as a place to get started from. I have stuggled with cross domain issues due to our network configuration even though you have a cross domain policy in effect. I would much prefer to have them on my server.

A couple more things would be very useful to know. Perhaps a page that listed which versions of the player a plugin is compatible with, which skins the plugin will work with.

While I read much of what is posted here daily I've missed such info from time to time and have could have saved myself a bit of frustration trying to get a plugin working. Namely accessibility, revolt, and snapshot I got this response from Adam yesterday after sending an email. Specifically am I right in assuming revolt will not work with rtmp?

Answer: this problem is specific to Revolt (and any plugins that directly access the data contained in the media file being played). A crossdomain policy file is required anytime the site hosting the player is different from the site hosting the media file (an mp3 in this case). In order for your setup to work, you need to place a crossdomain.xml policy file in the webroot of the server hosting the mp3's. That the revolt plugin is hosting by us is not relevant (it's the site hosting the player that determines the security domain).

As for Accessibility and Snapshot, neither of those Plugins are available yet.

- Adam

yousearch is ALMOST working. In my case it fails once it builds a playlist and I get a 2036 error when I enter a search AFTER my playlist completes, and it does not jump to the start of the playlist it does build. If my playlist has 5 items it currentitem in the playlist it builds will be 5. tubesearch also throws the 2036 errors.

Regards - Jimb

The plugins I built myself will be available for download from the Wiki, just like the player source code. I'll place them in here the coming few days:

http://code.jeroenwijering.com/trac/browser/plugins
http://code.jeroenwijering.com/trac/browser/skins

It's up to other developers to decide whether to share their plugins.

The issue with revolt you are talking about is actually even more complicated. When using RTMP, the player actually has to request policyfiles from the RTMP server. This mechanism is not in the player yet, as I've only found out about that this week. I know this is frustrating - I've hit some walls too from time to time - but the security mechanisms from Flash are difficult to understand and anticipate.

And YouSearch works fine with me - although a new playlist indeed doesn't start at 0:

http://www.jeroenwijering.com/?item=YouSearch_Plugin_Tutorial

@Jeroen

Thanks for the feedback and all of your efforts

Regards - Jimb

Easy fix for the playlist not starting at 0 in yousearch.

var player = null;
      function playerReady(thePlayer) {
      player = window.document[thePlayer.id];
      addListeners();
      }
     
     
      function addListeners() {
      if (player) {
      player.addControllerListener("ITEM", "itemListener");
      } else {
      setTimeout("addListeners()",100);
      }
      }
     
     
        function itemListener(obj)
      {
          previousItem = currentItem;
          currentItem  = obj.index;
          getPlaylistData(currentItem);
       
      };

;) Greetings, jos.

code:

<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>

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

<script type="text/javascript">
var so = new SWFObject('flash/player.swf','mpl','470','320','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
<strong>so.addParam('flashvars','&file=../video/driver.flv&skin=flash/rpmvmskin1.swf&plugins=flash/plugins/smartlogo_b/smartlogo_b.swf');</strong>
so.write('player');
</script>

I tested it locally and it works. Has anyone else been having this problem? Is there something wronge with the code?

Answered in this thread: http://www.longtailvideo.com/support/forum/Plugins/16311/plugin-with-localhost

    Please don't cross post.