Class RTCPCompoundPacket
Represents an RTCP compound packet consisting of 1 or more RTCP packets combined together in a single buffer. According to RFC3550 RTCP transmissions should always have at least 2 RTCP packets (a sender/receiver report and an SDES report). This implementation does not enforce that constraint for received reports but does for sends.
Inheritance
System.Object
RTCPCompoundPacket
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class RTCPCompoundPacket
Constructors
| Improve this Doc View SourceRTCPCompoundPacket()
Declaration
protected RTCPCompoundPacket()
RTCPCompoundPacket(RTCPReceiverReport, RTCPSDesReport)
Declaration
public RTCPCompoundPacket(RTCPReceiverReport receiverReport, RTCPSDesReport sdesReport)
Parameters
| Type | Name | Description |
|---|---|---|
| RTCPReceiverReport | receiverReport | |
| RTCPSDesReport | sdesReport |
RTCPCompoundPacket(RTCPSenderReport, RTCPSDesReport)
Declaration
public RTCPCompoundPacket(RTCPSenderReport senderReport, RTCPSDesReport sdesReport)
Parameters
| Type | Name | Description |
|---|---|---|
| RTCPSenderReport | senderReport | |
| RTCPSDesReport | sdesReport |
RTCPCompoundPacket(Byte[])
Creates a new RTCP compound packet from a serialised buffer.
Declaration
public RTCPCompoundPacket(byte[] packet)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | packet | The serialised RTCP compound packet to parse. |
Properties
| Improve this Doc View SourceBye
Declaration
public RTCPBye Bye { get; set; }
Property Value
| Type | Description |
|---|---|
| RTCPBye |
Feedback
Declaration
public RTCPFeedback Feedback { get; set; }
Property Value
| Type | Description |
|---|---|
| RTCPFeedback |
ReceiverReport
Declaration
public RTCPReceiverReport ReceiverReport { get; }
Property Value
| Type | Description |
|---|---|
| RTCPReceiverReport |
SDesReport
Declaration
public RTCPSDesReport SDesReport { get; }
Property Value
| Type | Description |
|---|---|
| RTCPSDesReport |
SenderReport
Declaration
public RTCPSenderReport SenderReport { get; }
Property Value
| Type | Description |
|---|---|
| RTCPSenderReport |
Methods
| Improve this Doc View SourceGetBytes()
Serialises a compound RTCP packet to a byte array ready for transmission.
Declaration
public byte[] GetBytes()
Returns
| Type | Description |
|---|---|
| System.Byte[] | A byte array representing a serialised compound RTCP packet. |
GetDebugSummary()
Declaration
public string GetDebugSummary()
Returns
| Type | Description |
|---|---|
| System.String |
TryParse(Byte[], RTCPCompoundPacket, out Int32)
Creates a new RTCP compound packet from a serialised buffer.
Declaration
public static bool TryParse(byte[] packet, RTCPCompoundPacket rtcpCompoundPacket, out int consumed)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | packet | |
| RTCPCompoundPacket | rtcpCompoundPacket | |
| System.Int32 | consumed |
Returns
| Type | Description |
|---|---|
| System.Boolean | The amount read from the packet |
TryParse(ReadOnlySpan<Byte>, out RTCPCompoundPacket, out Int32)
Declaration
public static bool TryParse(ReadOnlySpan<byte> packet, out RTCPCompoundPacket rtcpCompoundPacket, out int consumed)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ReadOnlySpan<System.Byte> | packet | |
| RTCPCompoundPacket | rtcpCompoundPacket | |
| System.Int32 | consumed |
Returns
| Type | Description |
|---|---|
| System.Boolean |