Seamless music for your website. HTML5 music player with continuous playback cross pages.
SCM Music Player is a free and open source web music player, that brings a seamless music experience to your website:
This is the Github repository of SCM Music Player. You can fork my source code, report issues or feature request.
Normally you don't need to download anything to use SCM Music Player. Just go to http://scmplayer.net and get the script via Setup Wizard. But if you want to self host or customize the source code, it is free to do so under the GNU General Public License.
To start with, place files into your server, run index.html and you will be redirected to the Setup Wizard, configured for your self hosted SCM Music Player.
SCM Music Player provides full featured control on your music. Apart from Setup Wizard, you can also control SCM Music Player via Javascript. The script exposes SCM to global scope with the following methods.
Plays the current song.
Pause the currently playing song.
Loads the previous song in playlist.
Loads the next song in playlist.
Queue a song title x url y to the playlist.
Add a song title x url y to the playlist and play it.
Sets the volume. Accepts an integer vol between 0
and 100
.
Change skin of SCM Music Player, with x being the link to a custom skin css file.
Change placement of the player bar. Accepts a string pos "top"
or "bottom"
Loads the specified playlist url x.
Loads the specified list of songs with their title and url respectively.
Set the repeat mode of playlist. Accepted values of no are:
0
(play playlist once), 1
(repeat playlist), 2
(repeat item).
Set whether playback order should be shuffled. Accepts a boolean x true
or false
.
Set whether playlist is being shown. Accepts a boolean x true
or false
.
SCM Music Player is made possible with these open source projects:
Copyright 2015 Adrian C Shum
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.