Class ReceiverReport
Class for building and parsing RTCP Receiver Report packets. See Section 6.4.2 of RFC 3550.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class ReceiverReport
Constructors
| Edit this page View SourceReceiverReport()
Constructs a new ReceiverReport object. Use this constructor when building a Receiver RTCP message to send.
Declaration
public ReceiverReport()
Properties
| Edit this page View SourceGetReportBlocks
Gets the list Report Blocks for this SenderReport.
Declaration
public List<ReportBlock> GetReportBlocks { get; }
Property Value
Type | Description |
---|---|
List<ReportBlock> |
Header
Gets the RTCP header.
Declaration
public RtcpHeader? Header { get; }
Property Value
Type | Description |
---|---|
RtcpHeader |
SSRC
Gets or sets the SSRC field.
Declaration
public uint SSRC { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceAddReportBlock(ReportBlock)
Adds a new ReportBlock object to the list of ReportBlocks.
Declaration
public void AddReportBlock(ReportBlock Rb)
Parameters
Type | Name | Description |
---|---|---|
ReportBlock | Rb | ReportBlock to add to the list of report blocks |
GetTotalBytes()
Calculates the total number of bytes necessary to hold this object in a byte array.
Declaration
public int GetTotalBytes()
Returns
Type | Description |
---|---|
int | The number of bytes required for this object. |
LoadBytes(byte[], int)
Loads this object into a destination byte array.
Declaration
public void LoadBytes(byte[] Dest, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Dest | The destination byte array. This array must be long enough to hold this object beginning at the StartIdx position. |
int | StartIdx | Index in Dest to load the bytes into. |
Parse(byte[], int)
Parses a byte array containing a ReceiverReport into a ReceiverReport object.
Declaration
public static ReceiverReport? Parse(byte[] Bytes, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array containing a ReceiverReport. |
int | StartIdx | Index of the first byte containing the header for the Receiver Report. |
Returns
Type | Description |
---|---|
ReceiverReport | Returns a new ReceiverReport object if successful or null if an error occurred. |
ToByteArray()
Converts this RTCP SenderReport object to a byte array so that it can be sent over the network.
Declaration
public byte[] ToByteArray()
Returns
Type | Description |
---|---|
byte[] | Returns a byte array containing an RTCP Sender Report./// |