Skip to content

Instantly share code, notes, and snippets.

@aracknobus
Forked from ph3nx/jwplayer.html
Created March 15, 2017 10:11
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 aracknobus/63d93315fce5ac864fc6b0b5dc43a524 to your computer and use it in GitHub Desktop.
Save aracknobus/63d93315fce5ac864fc6b0b5dc43a524 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