Class SdesPacket
Class for parsing and building SDES (Source Description) RTCP packets. See Section 6.5 of RFC 3550.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class SdesPacket
Constructors
| Edit this page View SourceSdesPacket(List<SdesChunk>)
Constructs a new SDES RTCP packet for sending.
Declaration
public SdesPacket(List<SdesChunk> Scs)
Parameters
Type | Name | Description |
---|---|---|
List<SdesChunk> | Scs | List of SdesChunk objects. The list should contain at least 1 SdesChunk object. |
SdesPacket(uint, SdesItem)
Constructs a new SdesPacke for sending given a SSRC and a SdesItem.
Declaration
public SdesPacket(uint SSRC, SdesItem Sdi)
Parameters
Type | Name | Description |
---|---|---|
uint | SSRC | SSRC that identifies the media source. |
SdesItem | Sdi | SDES item to send. |
Properties
| Edit this page View SourceChunks
Gets the list of SDES chunks in the packet.
Declaration
public List<SdesChunk> Chunks { get; }
Property Value
Type | Description |
---|---|
List<SdesChunk> |
Header
Gets the RTCP header.
Declaration
public RtcpHeader? Header { get; }
Property Value
Type | Description |
---|---|
RtcpHeader |
Methods
| Edit this page View SourceParse(byte[], int)
Parses the data in a byte array from a RTCP packet received from the network into a SdesPacket object.
Declaration
public static SdesPacket? Parse(byte[] Bytes, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array |
int | StartIdx | Stating index of the SdesPacket data in the input byte array |
Returns
Type | Description |
---|---|
SdesPacket | Returns a SdesPacket object if successful or null if an error occurred |
ToByteArray()
Converts this SdesPacket object to a byte array for sending it over the network.
Declaration
public byte[] ToByteArray()
Returns
Type | Description |
---|---|
byte[] | Returns this object converted to a byte array. |