Skip to content

Instantly share code, notes, and snippets.

@ph3nx
Created February 26, 2014 12:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ph3nx/9228471 to your computer and use it in GitHub Desktop.
Save ph3nx/9228471 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>
@lidox
Copy link

lidox commented Mar 16, 2016

Thanks for your snippet. I helped me!

@br3aking-bad
Copy link

Don't forget to add the licence key after the library :

<script>jwplayer.key=" YOUR KEY ";</script>

@redevilz
Copy link

hello i want to know about the file movies, i want put my friend link at my web.. can i do that? if can, where i can put the script?
Example file: 'http://dl.dropboxusercontent.com/s/mbzd7oe5yl11jjb/turcon.mp4', .... i must change into ? because i just want to make it url for a while, so not make it my hosting so heavy.. please help me, because almost 1 month i cannot use jw player at my web.. thanks before .. regrads

@bcaza
Copy link

bcaza commented Apr 9, 2017

A couple quick questions....

playerKXSDPIwKERSv <-- where does this come from or is it just something I make up?

// URL to the video file
file: 'http://dl.dropboxusercontent.com/s/mbzd7oe5yl11jjb/turcon.mp4',

I CANNOT FIND WHERE THIS COMES FROM? Running nginx on a ubuntu server - if I have these two questions answered, it would be GREATLY appreciated!

@pheakdeyum
Copy link

i need jwplayer play with openload video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment