views:

13

answers:

1

Users run my HTML files locally, straight from a CD.

I want to allow them to choose a bunch of videos and create a playlist on the fly.

This works very well if I run a web server but when I run the HTML itself it fails.

The player is created (using swfobject) and all my other code runs but playerReady never fires so I can never get the current play list to add to it.

Any ideas on how I can fix this or, more likely, work around it?

A: 

Hi Chris,

If the player is created, but you're not getting a playerReady, one of two things could be happening.

  1. There's another playerReady on the page that's catching your playerReady. Make sure that there's just one playerReady on the page.
  2. You haven't enabled JavaScript access for Flash. The code for that would look like this:

SWFObject:

var so = new SWFObject('player.swf','ply','470','320','9','#000000');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','video.flv');
so.write('mediaspace');

I should also note that there are some additional Flash security restrictions because you're accessing the player from disk. Namely, you can't access both a disk source and a network source (the Internet) simultaneously.

Best,

Zach

Developer, LongTail Video

zach at longtail