How to Use
Import Scripts and Stylesheets
HTML Script
Initialize Script
$(document).ready(function() {
$('#music').mPlayer({
'music/Michio - Ninon (Rumba).mp3': 'Ninon - Michino',
'music/Michio - Ninon (Rumba).ogg': '',
'music/The Secession - Arrange.mp3': 'Arrange - The Secession',
'music/The Secession - Arrange.ogg': '',
'music/The Secession - Decide.mp3': 'Decide - The Secession',
'music/The Secession - Decide.ogg': ''
});
});
Methods
Calling a method
$('#music').mPlayer('play');
Methods available:
- play : Plays the current song.
- pause : Pause the current song.
- togglePlay : Toggles the current song between play and pause.
- next : Loads and play the next song in the list.
- prev : Loads and play the previous song in the list.