Our project is a server and client based shared playlist. This project aims to allow users at a party or similar event with many people to vote for songs on a shared group playlist. The music that is voted highest will be put at the top of a playlist that is shared by all users. Users will also have access to their own music library (similar to the music library created in project 0), which other users cannot alter.
$ sudo apt-get install mpg123
- Clone Repo
- Run
$ make
- First run the client(local) playlist with
$ ./client
- To add songs to your playlist enter
add
when the client prompts for an input - Type the name, artist, and filename(make sure file is in the main directory)
- Repeat for as many times as you want
remove
to remove songs from your playlistplay
to play your playliststop
to stop playing a songview
to view client(local) playlist
- In another computer open the server with
$ ./server
- Similar to the client, you can add songs to the playlist with the
add
command. New songs are set to 0 votes - Enter how long users have to vote before the server starts playing the first song.
- Server will listen for connections and votes.
- Once you run server, you can connect to the server with your clients
by entering
server
from the client and giving the ip of the server. - On the client you can vote for songs with
vote -<song name> -<artist>
- You can also view the shared playlist on the client with
view
- The Server will take in the votes and play what has the most votes
- You can vote for the next song while a song plays
ENJOY THE BOPS