|
|
RTP.NET is a RFC 3550 compliant implementation, including a fully extensible RTP and RTCP stack written for the Microsoft .NET platform.
Providing a full set of documentation for all classes, methods and data types. Also included is sample source code for C# and C++/CLI to get started and show some ways to get the most out of this .NET assembly.
The simplest way to get started is to
set up a session and add a sender/receiver with a participant to it.
Parsing and handling of the underlying transport are all done
automatically if chosen to do so.
All that is needed to set up a working receiving session is shown below:
session = new RTPSession();
receiver = new RTPReceiver();
IPEndPoint rtpEp = new IPEndPoint(IPAddress.Parse(RTPipAddress), RTPport);
IPEndPoint rtcpEp = new IPEndPoint(IPAddress.Parse(RTCPipAddress), RTCPport);
participant = new RTPParticipant(rtpEp, rtcpEp);
session.NewRTPPacket = NewRTPPacket;
session.NewRTCPPacket = NewRTCPPacket;
receiver.AddParticipant(participant);
session.AddReceiver(receiver);
bool NewRTPPacket(RTPPacket packet, byte[] rawBuffer)
{
Console.WriteLine(packet.ToString());
return true;
}
void NewRTCPPacket(RTCPCompoundPacket packet)
{
Console.WriteLine(packet.ToString());
}
Whenever a packet arrives at either the RTP or RTCP endpoint the data is automatically parsed and provided to the client application via a callback, in the above case NewRTPPacket and NewRTCPPacket.
Sending an RTP packet is made as easy as possible through the session. You can do this either by sending an RTP-Frame (a collection of RTP-Packets) or a single RTP-Packet.
RTP.NET is designed to work seemlessly with other .NET components we provide, so you could easily receive an RTP packet and send it straight to one of our Video decoders.
All classes are extensible, so if you choose to add other types of RTP implementations (i.e. RFC 3016, RFC 2429) or choose to implement RTP over any other transport, then this is also possible by simply deriving the appropriate classes.
Freeware
The RTP.NET assembly is considered freeware and can be used and distributed as long as you credit us in your software.
Documentation included!
Download RTP.NET Version (Version 1.0.574)
Source Code License
Purchase source-code