works for '.wav' and '.mid' files as well (or anything else for that matter).
#Musicplayer on website code
It can be used on any page which has links to downloadable audio files. If you have a music file (such as an MP3 file) that you want played when a visitor clicks a link, put HTML code like the following on your page: Play music Replace the 'yourmusicfile.mp3' with the appropriate filename.This bookmarklet adds an audio player to play linked audio files on any page.
![musicplayer on website musicplayer on website](https://mir-s3-cdn-cf.behance.net/project_modules/1400/62405496689697.5eb3f6348a261.png)
It provides a consistent html player UI to all browsers which can be styled used standard css. It uses native where available and an invisible flash player to emulate for other browsers. A great tool which can also play videos.Īudio.js is a drop-in javascript library that allows HTML5’s tag to be used anywhere. Jplayer is a jQuery plugin which have been my audio player of choice for several months because of its simplicity. Want to see what you can do with Sound Manager 2? Then visit for an awesome demo! Using HTML5 and Flash, SoundManager 2 provides reliable cross-platform audio under a single lightweight (10 kb) JavaScript API. It have lots of useful features, such as a way to protect your audio from being hijacked by using a beep overlay, which is a great solution for commercial uses. But it’s cheap ($5 only!) and works well. This player is the only one from the list which isn’t free. The player works perfectly on all recent browsers. Speakker is cross-browser compatible and have a Flash fallback for old browsers.Īnd two different button sets for light and dark themes.Īre you using Mootools on your website? If yes, you’ll probably enjoy this player, made with HTML5 and the Mootools JavaScript framework. Speakker is super easy to set up and comes out of the box in two variations and with incredible options of customization: Flexible dimensions, unlimited colors, etc… Here is a great player, probably my favorite from the whole list. Great to use when you do not need playlists or any fancy effects! Speakker This player is very minimalist but works well. The binary music player is based around this video (which is using real piano sounds, so is a lot more elegant) - and is built with Tone. → Visit Scott Andrew’s HTML5 audio player Media Element is skinnable, and offers plugins for popular platforms such as WordPress, Drupal, Joomla, etc. Older browsers are supported by Custom Flash and Silverlight players that mimic the HTML5 MediaElement API. MediaElement is an audio an video player which is written in pure HTML5 and CSS.