Our Setup Wizard renders the code you need to implement a specific JW Player setup. It’s also a useful tool to experiment to see what's possible with the player. Roll over a variable to see its tooltip or check this page for more explanations. Many thanks to Lars Nyboe Andersen for creating the first version of this wizard and additional example setups.
You need Flash Player 9 and a browser with javascript!
Below is the embed code for this setup. If you use any JavaScripting, we recommend the swfobject 1.5 code.
<embed src="/jw/embed/player.swf" width="470" height="320" bgcolor="#ffffff" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://content.longtailvideo.com/videos/flvplayer.flv" />
Below is the swfobject 1.5 code for this setup. For blogs and sites like MySpace, use the embed code.
<script type='text/javascript' src='/embed/swfobject.js'></script>
<div id='mediaspace'>This div will be replaced</div>
<script type='text/javascript'>
var s1 = new SWFObject('/jw/embed/player.swf','ply','470','320','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=http://content.longtailvideo.com/videos/flvplayer.flv');
s1.write('mediaspace');
</script>
*Please note: this example setup uses a player.swf (and, in some cases, a swfobject.js) that is hosted on our servers. You need to download your own copy of the JW Player (swfobject.js is included in the download) and place it on your own server -- then change the link(s) in this example so they point to the file(s) on your server.
If you don’t buy a commercial license, you cannot use a JW Player on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!