1. Upload the jwplayer.js and player.swf files from the download ZIP to your server. All other files in the
download (documentation, source code, etc) are optional.
2. Include the jwplayer.js somewhere in the head of your webpage:
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
3. Call the player setup somewhere in the body of your website. Here's a basic example:
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "/jwplayer/player.swf",
file: "/uploads/video.mp4",
height: 270,
width: 480
});
</script>
Partager