Did you ever wanted to display media (music, videos, …) on your website, but then your media gets played in the browser’s default media-player. Today I will show you a great media-player called jPlayer. jPlayer makes use of HTML5 and jQuery.
A quick look at the interface
jPlayer looks great. The interface is totally customizable to suit your needs. It’s very easy to get started, and the package is only 8 KB (the minified version). Let’s look at some pictures:

This is the audio player. As I said before, it’s totally customizable, so you can edit it how you want it.

This is how the audio playlist looks. Pretty awesome, eh?

This is the video player, which also looks kinda neat.

And finally, the video player with a playlist.
The installation of jPlayer
Follow the steps below to install your copy of jPlayer:
- Download the files from the jPlayer website.
- Install the files on your webhost. Make sure your .swf file is in a folder called ‘js’, that folder must be in the same directory as the page where you want your media on is.
- Add the following code to the head of the webpage you want to display your media on:
- Then, the following code is used to set up your media:
- And finally, this code is used to display the actual player itself:
More information on installing this plugin can be found on the jPlayer Developer Guide.
Browserconsistency and media support
According to the jPlayer website the player will work on Google Chrome, Mozilla Firefox, Apple Safari, Opera and Internet Explorer 6 and up. It will also work on mobile Safari (iPhone, iPad and iPod), Android 2.3 and Blackberry Playbook. That is pretty much covering all browsers I know, so I won’t think there are any inconsistencies. The media types that you can use with HTML5 are MP3, MP4 (AAC or H.264), ogg (Vorbis/Theora), webm (Vorbis/VP8) or wav. With Flash you can use MP3, MP4 (AAC or H.264) or FLV.
The MP3-jPlayer WordPress plugin
Wouldn’t it be much easier to have use a WordPress plugin for this (assuming your website is running on WordPress)? If you would like that, there actually is one. And it’s called the MP3-jPlayer. In the control panel of the plugin you could style your media player and you can add the player to your website using shortcodes, widgets or template tags. You can look at the demo if you want.
That was it for today, do you like this plugin or not? Or do you use your own awesome plugin for displaying media? Tell me in the comments.



