Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jakebellacera
Created April 1, 2011 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakebellacera/898569 to your computer and use it in GitHub Desktop.
Save jakebellacera/898569 to your computer and use it in GitHub Desktop.
swfobject embedding for splash page/etc
<!-- Paste these in the head if you're using a splash page -->
<script src="/engine/js/jquery/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript" src="/engine/js/swfobject/swfobject-2.2.js"></script>
<!-- The actual video -->
<div id="video_player">Loading...</div>
<script type="text/javascript">
{literal}
var vars = {};
var params = {};
var attributes = {};
{/literal}
vars.file = 'source.mp4'; // edit this
vars.skin = '/engine/swf/jw/skins/modieus/video_player.xml';
vars.controlbar = 'over';
vars.autostart = false;
vars.stretching = 'fill';
vars.abouttext = 'ground(ctrl)';
vars.aboutlink = 'http://www.groundctrl.com/';
vars.frontcolor = '#FFFFFF';
vars.image = 'thumbnail.jpg'; // edit this
params.allowfullscreen = true;
params.allowscriptaccess = 'always';
params.allownetworking = 'all';
params.wmode = 'transparent';
// swf, element id, width, height, etc
swfobject.embedSWF('/engine/swf/jw/player.swf', 'video_player','440','248','9.0.0','/engine/swf/expressinstall.swf',vars,params,attributes);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment