jPlayer

HTML5 Audio & Video for jQuery

a project by happyworm

Step 3 : Include jPlayer

previous step | next step

To use jPlayer, add the following line to the HTML of your <head>:

<script type="text/javascript" src="/js/jquery.jplayer.min.js"></script>

Take care to include the jPlayer plugin after the jQuery library is included in your page.

Your <head> code should look like:

<head>
  <script type="text/javascript" src="/js/jquery.min.js"></script>
  <script type="text/javascript" src="/js/jquery.jplayer.min.js"></script>
</head>

You will now have access to the jPlayer Library on your webpage. If you are new to jPlayer, the link to the developer guide for the latest release is included in the site navigation at the top of all pages.

previous step | next step

Notes:

If you use jPlayer from a CDN, remember to set your swfPath to the same location. The SWF has relaxed security to allow you to include it on remote sites.