I was using PrettyPhoto to load some movs for playing on my site, but I've since realised that they won't stream no their own.
So I've now implemented JWPlayer but I'm struggling to make it work nicely within the lightbox popups. As it stands I'm just using PP to open hidden divs which contain the JWPlayer. Surely this isn't the best way?!
As below.. 'rockband' is the hidden div and then 'container1' is the container for JWPlayer. It seems a bit of a long way round to do it, and isnt working in IE (surprise surprise..). PP can open SWFs directly.. maybe I should be using flashvars and opening the JWPlayer sfw or something..?
Thanks for any pointers!
So I've now implemented JWPlayer but I'm struggling to make it work nicely within the lightbox popups. As it stands I'm just using PP to open hidden divs which contain the JWPlayer. Surely this isn't the best way?!

As below.. 'rockband' is the hidden div and then 'container1' is the container for JWPlayer. It seems a bit of a long way round to do it, and isnt working in IE (surprise surprise..). PP can open SWFs directly.. maybe I should be using flashvars and opening the JWPlayer sfw or something..?

Code:
<div id="rockband" class="hide" style="height: 400px; width: 400px;">
<p id="container1">Please install the Flash Plugin</p>
<script type="text/javascript">
var flashvars = { file:'../../embed/videos/rockband.mov',autostart:'true' };
var params = { allowfullscreen:'true', allowscriptaccess:'always' };
var attributes = { id:'player1', name:'player1' };
swfobject.embedSWF('../embed/jwplayer/player.swf','container1','480','270','9.0.115','false',flashvars, params, attributes);
</script>
</div>
</div>