Class SdesChunk
Class for parsing and building a SDES chunk for an RTCP SDES packet. See Section 6.5 of RFC 3550.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class SdesChunk
Constructors
| Edit this page View SourceSdesChunk()
Constructor
Declaration
public SdesChunk()
SdesChunk(uint, SdesItem)
Constructs a new SdesChunk for sending as part of a RTCP packet given the SSRC and a SdesItem.
Declaration
public SdesChunk(uint Ssrc, SdesItem Sdi)
Parameters
Type | Name | Description |
---|---|---|
uint | Ssrc | SSRC that identifies the media source. |
SdesItem | Sdi | SdesItem object to add to the list of items. |
SdesChunk(uint, List<SdesItem>)
Constructs a new SdesChunk for sending as part of a RTCP SdesPacket.
Declaration
public SdesChunk(uint Ssrc, List<SdesItem> Items)
Parameters
Type | Name | Description |
---|---|---|
uint | Ssrc | SSRC that identifies the media source. |
List<SdesItem> | Items | List of SDES items. The list should include at least one SDES item. |
Properties
| Edit this page View SourceItems
Gets the list of SDES items in this chunk.
Declaration
public List<SdesItem> Items { get; }
Property Value
Type | Description |
---|---|
List<SdesItem> |
SSRC
Gets or sets the synchronization source (SSRC) of this chunk.
Declaration
public uint SSRC { get; set; }
Property Value
Type | Description |
---|---|
uint |
TotalLength
Gets the total length of the SDES chunk that was received and parsed. Do not use this property if constructing a SdesChunk item to send.
Declaration
public int TotalLength { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceParse(byte[], int)
Parses a byte array containing the data for a SdesChunk.
Declaration
public static SdesChunk? Parse(byte[] Bytes, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array |
int | StartIdx | Index of the first byte of the SdesChunk object. |
Returns
Type | Description |
---|---|
SdesChunk | Returns a SdesChunk object or null if an error occurred. |
ToByteArray()
Converts this object to a byte array for sending it.
Declaration
public byte[] ToByteArray()
Returns
Type | Description |
---|---|
byte[] | Returns a byte array containing the binary version of this object. Returns null if there is no payload or the SDES chunk is not valid. |