Created
April 1, 2011 18:00
-
-
Save jakebellacera/898569 to your computer and use it in GitHub Desktop.
swfobject embedding for splash page/etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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