Skip to content

Instantly share code, notes, and snippets.

@joeljackson
Created April 4, 2013 20:52
Show Gist options
  • Select an option

  • Save joeljackson/5314264 to your computer and use it in GitHub Desktop.

Select an option

Save joeljackson/5314264 to your computer and use it in GitHub Desktop.
Video Embed
<div class="media">
<div id="mediaspace_wrapper" style="position: relative; width: 500px; height: 298px;"><object type="application/x-shockwave-flash" data="/jwplayer/jwplayer.flash.swf" width="100%" height="100%" bgcolor="#000000" id="mediaspace" name="mediaspace" tabindex="0"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="seamlesstabbing" value="true"><param name="wmode" value="opaque"></object><div id="mediaspace_jwpsrv" style="position: absolute; top: 0px; z-index: 10;"></div></div>
<script type="text/javascript">
jwplayer.key="L9eJslnS4SIMCy1u1VeSZLNSyUJNi3shW1f35A=="
jwplayer('mediaspace').setup({
autostart: true,
file: 'http://video.xfire.com/5ede1f.mp4',
width: 500,
height: 298,
primary: 'flash',
base: "/jwplayer/"
});
$("#mediaspace").attr('width', '500px')
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment