Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.5 KB

README.md

File metadata and controls

45 lines (35 loc) · 2.5 KB

Web-Based Music Player For MPD

Warning: This is very insecure. It runs system commands a lot, and is recommended to be ran on a local server without internet access.

Note: This was originally made specifically for my PC, but I plan on editing this to work for anyone. Keep this in mind when using this.

For the lyrics to work currently, you have to have the lyrics in a folder called "lyrics" in the root folder of the server. Then the lyrics for the song have to be in a txt document labelled "artist - title.txt". Basically, if you use ncmpcpp as you music player, you can copy "$HOME/.lyrics" to your root folder and rename it to "lyrics".

Also, sorry for my terrible looking script. Just started out with PHP in this project for the first time.

By the way, if anyone has suggestions for this little project, please feel free to suggest away. I will most likely implement it.

Requirements

  1. A functioning web server with PHP support.
  2. A functioning mpd server.
  3. mpc - A command line client for mpd.
  4. ncmpcpp - Another command line client for mpd. Working on removing this requirement so that this won't be needed in the future.

Install

Copy "favicon.png", "music-style.css", and "music.php" to the root folder of your server.

To access, go to "http(s)://server.address/music.php".

Screenshots

Overview Overview Play Artist Play Artist Play Album Play Album Play Playlist Play Playlist List Artists List Artists List Albums List Albums List Playlists List Playlists Play Music From Server - Artists Play Music From Server - Artists Play From Server - Albums From Artist Play From Server - Albums From Artist.png Play From Server - Songs from Album from Artist Play From Server - Songs from Album from Artist