Hi
I have read all the info including 'Embedding flash' but I am still unsure.
I am putting a video clip on a webpage, is it saying that in the new IE7 a grey box will appear round my clip that you have to click on unless you use the swfobject, or am I barking up the wrong tree?
If I am why are there two different types of code, how do you know which is best or what to use ?
I also want 'my viewers' to be told if they don't have the correct flash to be able to view it, I found this code on the site...type="application/x-shockwave-flash" pluginspage=
"http://www.macromedia.com/go/getflashplayer"
Is this correct for embeded code ? If yes WHY isn't it in any of the code on the wizard ? It seems to be included on the swfobject code. Sorry I'm dim I just find all this so confusing.
I have eventually got the player nearly how I want it (with the imbed code) the only thing I don't like is there is no 'stop/rewind' button. So if someone wants to restart the video half way through they can't, if they use the scroll bar then it doesn't ever go back to my 'splash page' Unless I am missing something this seems to be a really crazy omission. Since everything else on this player is just so good I'm sure there must be a way to do this ...
Thanks in advance for any help.
Kind regards
Andy :-)
p.s. Who ever does this forum there is no enough length for my web address !!


The best way to put a JW Player in your page is to use JavaScript with SWFObject. The <embed> / <object> code is only used on social networking sites (MySpace, etc.) that don't allow JavaScript.
SWFObject (with the <div>) also takes care of checking for the correct version of the Flash plugin.
Here's sample code for a basic install. I've included quite a few of the flashvars (including some for playlists) so you could see how they are used. If you don't need them, you can remove them or comment them out with double forward slashes "//".
<html><head>
<title>Simple JW Player</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://my.domain.com/mediaplayer.swf', 'playlist', '475', '450', '9');
s1.addParam('allowfullscreen', 'true');
s1.addVariable('width', '475');
s1.addVariable('height', '450');
s1.addVariable('displayheight', '350');
s1.addVariable('file', 'http://my.domain.com/video.flv');
s1.addVariable('overstretch', 'true');
s1.addVariable('showdigits', 'true');
s1.addVariable('autostart', 'true');
s1.addVariable('shuffle', 'false');
s1.addVariable('repeat', 'list');
s1.addVariable('showicons', 'true');
s1.addVariable('thumbsinplaylist', 'true');
s1.addVariable('logo', 'http://my.domain.com/logo.png');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>
</head>
<body onload="javascript:createPlayer();">
<div id="player">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>
to see this gallery.
</div>
</body>
</html>
Regarding "stop/rewind" and the hundreds of other options: The players have basic functionality and a JavaScript API that enables users to add the specific functions that they need for their application. Seems every user has something that they think should be in the players, but in my opinion (I'm NOT speaking for Jeroen here), adding all of those capabilities would make the players overly complex and buggy.