Skip to content

mrchocha/Audio-Streaming-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio-Streaming-in-C

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.

Table Of Contents

Documentation

Refer docs here.

Installing Dependencies

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

Compile and Running

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 8081 make 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.

Measuring jitter and average latency

For detailed understanding of jitter and average latency calculation go here.

Authors

Words from Authors

Special Thanks to Prof. Jitendra Bhatia and Teaching Assitant Parshwa Shah for their valuable guidance.

References

About

Audio streaming using customized protocol to stream the audio from server to client with added reliablity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published