Jim Lastinger June 23, 2011 • Solutions
In-depth guide to getting started with the Highwinds CDN.
Jim Lastinger January 21, 2011 • Sample Code
This code creates a JWplayer in your page containing the video streamed through the .smil file that you specify.
<script type='text/javascript' src='http://files.sparkcdn.com/jwplayer/swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('http://files.sparkcdn.com/jwplayer/player.swf','ply','600','400','9','#ffffff');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://hwcdn.net/your-file-goes-here.smil');
so.addVariable('type','highwinds');
so.addVariable('rtmp.loadbalance', 'true');
so.addVariable('autostart', 'true');
so.write('mediaspace');
</script>
The options are configurable, such as the player size, whether or not to start auto-play, etc. You can also have our website generate this code. Login to SparkCDN.com and click on Code Generator.
Attached is Highwinds' guide to intergrating JW Player.
Please feel free to comment if you have any questions or additions to make to this post. Thanks!