Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,

I am trying to create an application to stream audio from one PC to another using the RTP protocol. I was wondering whether this is even possible, or whether this is the best way to stream audio within a LAN?

I have read through this article (http://www.codeproject.com/KB/IP/Using_RTP_in_Multicasting.aspx, however have never used .net or C#, so don't know where to start!

Are there any pre-written libraries available, or any tips you could provide me with?

Thanks,

Tim
Posted
Comments
Albert Holguin 5-Feb-11 20:08pm    
I've used RTP for transporting various data types, its very versatile. Its usually implemented under UDP (commonly multicast or unicast) to try to accommodate the "Real-Time" aspect (versus adding error checking in TCP). The RTP packet itself is dynamic in size and can carry any type of data, given of course that you build both the server and client to actually do something with the data. With that said, the challenge would be streaming data into an application that'll accept and play the stream once it has been interpreted on the client side (challenge only because I've never done this part of it). I've done all of this RTP work with C++ but its doable in a variety of languages.
hariharansa 19-Oct-11 19:35pm    
Hi Albert,
I want to use a c++ library for RTp to transfer files , can u pls help me with some good libraries for it.I have to use the protocl from the application written in c++
Albert Holguin 21-Oct-11 11:01am    
I've never seen an actual library for RTP, I imagine no one has written one because it's such a simple standard. Find a socket library you want to use, figure out how to work with UDP datagrams, then learn the RTP application layer. It's not very hard, post questions on CP if you need help (tag with c++ and RTP, I should see those questions).
Albert Holguin 5-Feb-11 20:25pm    
btw... this sounds like an interesting project... let me know what you're thinking and I may be able to help...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900