Started working on the music player

This commit is contained in:
gballan1
2016-11-28 11:17:28 -05:00
parent 89e51e2da7
commit 04b7376cbd
4 changed files with 43 additions and 24 deletions

View File

@ -1,7 +1,26 @@
$(document).ready(function() {
$('#music-player').musicPlayer({
'audio': '#music-player',
'volume': .5,
'startTime': 0
})
});
var player = new MediaElementPlayer('#music-player', {
// initial volume when the player starts
startVolume: 0.5,
// useful for <audio> player loops
loop: false,
// enables Flash and Silverlight to resize to content size
enableAutosize: true,
// the order of controls you want on the control bar (and other plugins below)
features: ['playpause','progress','current','duration','tracks','volume'],
// Hide controls when playing and mouse is not over the video
alwaysShowControls: false,
// force iPad's native controls
iPadUseNativeControls: false,
// force iPhone's native controls
iPhoneUseNativeControls: false,
// force Android's native controls
AndroidUseNativeControls: false,
// forces the hour marker (##:00:00)
alwaysShowHours: false,
// turns keyboard support on and off for this instance
enableKeyboard: true,
// when this player starts, it will pause other players
pauseOtherPlayers: true
});
});