Hello. Quick question. Looking to integrate the flv player with Farkob's javascript lightbox mod (http://videobox-lb.sourceforge.net/ ).
On Farkob's page he says, "If you want to show FLV files you should use Jeroen Wjering's Flash FLV Player with custom flash feature."
Other than the head tag references, Farkob calls his script via a rel tag, e.g. <a href="http://www.youtube.com/watch?v=VhtIydTmOVU" rel="vidbox 800 600" title="caption">our video1</a> .
Okay, I'm stuck. Any suggestions as to how to do that within this:
<script type="text/javascript">
var s2 = new SWFObject("/av/app/flvplayer.swf","single","480","380","7");
s2.addParam("allowfullscreen","true");
s2.addVariable("width","480");
s2.addVariable("height","380");
s2.addVariable("backcolor","0x000000");
s2.addVariable("frontcolor","0xCCCCCC");
s2.addVariable("lightcolor","0x557722");
s2.addVariable("file","/av/media/sample.flv");
s2.addVariable("image","/av/app/preview.jpg");
s2.write("player10");
</script>
Thanks in advance.
Brian


Without seeing more code, I can only guess.
If you wrap your JW Media Player code in a function, you can call it from a link like this (goes in the head element of your HTML doc.):
<script type="text/javascript">function createPlayer()
{
var s2 = new SWFObject("/av/app/flvplayer.swf","single","480","380","7");
s2.addParam("allowfullscreen","true");
s2.addVariable("width","480");
s2.addVariable("height","380");
s2.addVariable("backcolor","0x000000");
s2.addVariable("frontcolor","0xCCCCCC");
s2.addVariable("lightcolor","0x557722");
s2.addVariable("file","/av/media/sample.flv");
s2.addVariable("image","/av/app/preview.jpg");
s2.write("player10");
}
</script>
If you really want to allow the Flash Player true fullscreen, the minimum version you need to specify is 9,0,115,0. Otherwise your users won't be prompted to upgrade their Flash Player to use the fullscreen option.
var s2 = new SWFObject("/av/app/flvplayer.swf","single","480","380",<strong>"9.0.115"</strong>);Then, load the player it like this:
<a href="#" onclick="javascript:createPlayer(); return false;">Load Player</a>