HTML5 Music Player designed a pretty slick compact music player interface in PSD some time ago. Now, someone has coded the design into an awesome
HTML5 Music Player in jQuery for us. The user interface is very clean and easy to use. You can also check out other
HTML5 Music and
Audio Solutions for
jQuery we have mentioned before.
//Initialize the plugin
$('body').ttwMusicPlayer(myPlaylist, {options});
//You can specify the following options in the options object:
{
currencySymbol:'$',
buyText:'BUY',
tracksToShow:5,
autoPlay:false,
ratingCallback:function(index, playlistItem, rating){
//some logic to process the rating, perhaps through an ajax call
}
}
//Build your playlist. The playlist uses the same format s jPlayer (an array of objects. However, this plugin requires you to add some additional parameters. A sample playlist item:
{
mp3:'mix/1.mp3',
oga:'mix/1.ogg',
rating:4.5,
title:'Some song title',
buy:'http://www.codebasehero.com',
price:'0.99',
duration:'4:28',
artist:'Artist Name',
cover:'images/cover.jpg'
}
Requirements: jQuery Framework
Demo: http://www.codebasehero.com/files/music-player/demo/
License: License Free HTML5 Music Player
1 komentar:
Buying and taking that plugin and integrating it into WP is really good for beginers . I would just like to share with everyone tat html5 audio player were really works well.
Post a Comment