Electronic – Audio streaming and udp doubt

audiopic

I'm doing a project, where I have to decode an mp3 audio stream which I receive from a web server, with a pic32 over Ethernet. My doubt is:

What if the server sends more data than the pic can handle? I mean, Can I control the amount of packets that the server send me? Because if I there is only one device connected to the web, the server will send all the mp3 song at without wait, and the pic memory will be not enough.

How can I solve this problem?

Best Answer

If you use a proper streaming protocol like RTSP, then the server will send the packets at the correct rate.