Skip to content

Instantly share code, notes, and snippets.

@saiury92
Forked from ph3nx/jwplayer.html
Last active September 14, 2015 09:26
Show Gist options
  • Save saiury92/59324bfa97f457e665b7 to your computer and use it in GitHub Desktop.
Save saiury92/59324bfa97f457e665b7 to your computer and use it in GitHub Desktop.
This is how you setup the jwplayer with a self-hosted video file. The official documentation: http://www.longtailvideo.com/support/jw-player/28833/quick-start-guide
<!-- JW Player Library -->
<script src="http://jwpsrv.com/library/MCK8hplLEeOY0CIACmOLpg.js"></script>
<!-- div for the player -->
<div id='playerKXSDPIwKERSv'></div>
<!-- Script to display video file in the player div -->
<script type='text/javascript'>
jwplayer('playerKXSDPIwKERSv').setup({
// URL to the video file
file: 'http://dl.dropboxusercontent.com/s/mbzd7oe5yl11jjb/turcon.mp4',
// URL to the image that should be shown before the video is started
image: 'http://img22.myimg.de/tssbgc4e50.png',
title: 'Turcon',
width: '100%',
aspectratio: '16:9'
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment