Audio streaming is done using customized protocol to stream the audio from server to client. UDP protocol is used to transfer data and reliability is added by stop-and-wait protocol. Client has functionality to play, pause and resume the song.
- Documentation
- Installing Dependencies
- Compile and Running
- Measuring Jitter and Average latency
- Authors
- Words from Authors
- References
Refer docs here.
You must have gcc on your ubuntu or macOS to run the code. Other dependencies are libvlc and pthread libraries and vlc media player. To install them, run
make install
To compile both client and server run command
make
To compile only client run command
make client
To compile only server run command
make server
Now to run server run command
./server <ip-address> <port-no-1> <port-no-2>
Now to run client run command
./client <ip-address> <port-no-1> <port-no-2>
i.e.
./server 127.0.0.1 8080 8081,./client 127.0.0.1 8080 8081make sure that port1 and port2 are same for both client and server.
<port-no-1>This port is for song transmission.
<port-no-2>This port is for transmitting list of songs available on the server side.
For detailed understanding of jitter and average latency calculation go here.
- Rahul Chocha mrchocha
- Jeet Karia JeetKaria06
Special Thanks to Prof. Jitendra Bhatia and Teaching Assitant Parshwa Shah for their valuable guidance.