You can view a version I have hosted on one of my personal server at http://music.kaiserapps.com/.
To have the full functionality and to use your own music please follow the install instructions below.
The music I have used for the hosted version is copyright of Social Club. To purchase or download their music visit their website.
Run it on your computer or server containing your music library and then access it through <ip of computer>:2000
, for example if you run it on your local computer you would use localhost:2000
.
To install these, use:
sudo npm install -g grunt-cli nodemon
For the Youtube download and converison, make sure you have ffmpeg installed on your system (including all necessary encoding libraries like libmp3lame or libx264). Windows support is not guaranteed and is up to someone else to submit any pull requests for windows support.
After all the dependencies have been installed, run these commands to install the music player:
git clone https://github.com/benkaiser/node-music-player.git
cd node-music-player/
npm install
grunt
Then run the server with:
node app.js
Go to localhost:2000
in your browser (or known ip of server if it is on a different machine). From there a prompt will show so you can change your music directory, after saving your music directory you can click Scan Library -> Regular Scan
at the top of the page. From there select Start Scan
and let it do it's magic adding all the songs to your library. Happy listening!
If you want to sync your Node Music Player playlists to your phone, check out the android sync app repository.
If you would like to hook up keyboard shortcuts to play/pause/next/prev when you aren't currently focused on the chrome follow these steps:
-
first set your remote name from the
Remote Setup
button in the bottom right. -
In whatever program you use to configure your shortcuts, link the button press you want to curl commands of the format:
curl http://localhost:2000/command/<remote_name>/<command>
where<remote_name>
is the remote name you entered and<command>
can be eithernext
,prev
orplaypause
. For an example, here is my i3 config bindings that hook up Alt+PgDn, Alt+PgUp and Alt+Home to the commands:
bindsym $mod+Home exec curl http://localhost:2000/command/my_remote_name/playpause
bindsym $mod+Next exec curl http://localhost:2000/command/my_remote_name/prev
bindsym $mod+Prior exec curl http://localhost:2000/command/my_remote_name/next
- Sync between computers (servers running on different computers)
- Download from youtube and soundcloud
- View full-resolution cover art
- Full playlist support
- Multiple selection
- Repeat, repeat one and shuffle
- Search functionality
- See the projects public Trello board for features planned / implemented. If you want to request a feature, please create an issue.