PDA

View Full Version : video player


Trevor
07-29-2008, 11:28 AM
Hi
I've been trying to get the JW FLV Media PLayer to work with Flashpanoramas but I have no expertise with html, javascript or AS3. Does anyone know how to go about putting these parameters needed for the player from the html

<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","352","276","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=myvideo.flv");
s1.write("container");
</script>

into the FPP xml file within the onClick

<box id="video" static="1" align="LT" salign="LT" />

<spot id="play" static="1" align="LT" salign="LT" staticY="400" url="files/playbutton.png" onClick="video.url=files/player.swf?file=files/myvideo.flv" />

There may be some clue here about putting flashvars in an external config xml file
http://www.jeroenwijering.com/?thread=9167
If this is not possible what other ways are there.
Thanks
Trevor.