C# Class NewTOAPIA.Net.Rtp.RtpPacket

RtpPacket is based on RFC 1889. This class knows how to form a byte array for sending out over the network and how to turn a byte array into Rtp fields and a payload. It is meant to be used as a translation mechanism from bytes to structure and vice versa. This is a lower level class exposed only for use by applications that want intimate details about an individual Rtp packet or want to provide their own transport mechanism. Applications that simply want to send/receive real time data over IP Multicast should instead use RtpSender / RtpListener which handle all aspects of network transport and framing (AKA breaking/assembling large datasets into packet sized chunks). There is a small amount of Rtp protocol intelligence in the class when you use the Next methods. The Next methods assume you are working on RtpPackets in a series and will perform helper functions such as compare Sequence numbers for linearness and NextPayload increments the Sequence number between new packets. This implementation has no support for CSRC identifiers. The Rtp header has the following format: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P|X| CC |M| PT | sequence number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | timestamp | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | synchronization source (SSRC) identifier | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | contributing source (CSRC) identifiers (if mixers used) | | .... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ V = Version P = Padding X = Extensions CC = Count of Contributing Sources M = Marker PT = Payload Type
Inheritance: RtpPacketBase
ファイルを表示 Open project: Wiladams/NewTOAPIA Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
RtpPacket ( ) : System
RtpPacket ( BufferChunk buffer ) : System
RtpPacket ( RtpPacketBase packet ) : System
RtpPacket ( int packetSize ) : System

Method Details

RtpPacket() public method

public RtpPacket ( ) : System
return System

RtpPacket() public method

public RtpPacket ( BufferChunk buffer ) : System
buffer NewTOAPIA.BufferChunk
return System

RtpPacket() public method

public RtpPacket ( RtpPacketBase packet ) : System
packet RtpPacketBase
return System

RtpPacket() public method

public RtpPacket ( int packetSize ) : System
packetSize int
return System