Class GenericNack
A Generic NACK feedback message.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class GenericNack
Constructors
GenericNack()
Initializes a new instance of the GenericNack class.
Declaration
public GenericNack()
GenericNack(DataBuffer)
Initializes a new instance of the GenericNack class.
Declaration
public GenericNack(DataBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
Properties
BitmaskOfLostPackets
Gets or sets the bitmask of lost packets.
Declaration
public int BitmaskOfLostPackets { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DataBuffer
Gets the data buffer.
Declaration
public DataBuffer DataBuffer { get; }
Property Value
Type | Description |
---|---|
DataBuffer |
FixedPayloadLength
Gets the length of the registered fixed payload.
Declaration
public static int FixedPayloadLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Handled
Gets a value indicating whether all lost packets were retransmitted.
Declaration
public bool Handled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus10Handled
Gets or sets whether the packet with ID PacketId + 10 was retransmitted.
Declaration
public bool LostPacketIdPlus10Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus11Handled
Gets or sets whether the packet with ID PacketId + 11 was retransmitted.
Declaration
public bool LostPacketIdPlus11Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus12Handled
Gets or sets whether the packet with ID PacketId + 12 was retransmitted.
Declaration
public bool LostPacketIdPlus12Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus13Handled
Gets or sets whether the packet with ID PacketId + 13 was retransmitted.
Declaration
public bool LostPacketIdPlus13Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus14Handled
Gets or sets whether the packet with ID PacketId + 14 was retransmitted.
Declaration
public bool LostPacketIdPlus14Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus15Handled
Gets or sets whether the packet with ID PacketId + 15 was retransmitted.
Declaration
public bool LostPacketIdPlus15Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus16Handled
Gets or sets whether the packet with ID PacketId + 16 was retransmitted.
Declaration
public bool LostPacketIdPlus16Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus1Handled
Gets or sets whether the packet with ID PacketId + 1 was retransmitted.
Declaration
public bool LostPacketIdPlus1Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus2Handled
Gets or sets whether the packet with ID PacketId + 2 was retransmitted.
Declaration
public bool LostPacketIdPlus2Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus3Handled
Gets or sets whether the packet with ID PacketId + 3 was retransmitted.
Declaration
public bool LostPacketIdPlus3Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus4Handled
Gets or sets whether the packet with ID PacketId + 4 was retransmitted.
Declaration
public bool LostPacketIdPlus4Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus5Handled
Gets or sets whether the packet with ID PacketId + 5 was retransmitted.
Declaration
public bool LostPacketIdPlus5Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus6Handled
Gets or sets whether the packet with ID PacketId + 6 was retransmitted.
Declaration
public bool LostPacketIdPlus6Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus7Handled
Gets or sets whether the packet with ID PacketId + 7 was retransmitted.
Declaration
public bool LostPacketIdPlus7Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus8Handled
Gets or sets whether the packet with ID PacketId + 8 was retransmitted.
Declaration
public bool LostPacketIdPlus8Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlus9Handled
Gets or sets whether the packet with ID PacketId + 9 was retransmitted.
Declaration
public bool LostPacketIdPlus9Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LostPacketIdPlusLength
Gets the length of the lost packet identifier plus.
Declaration
public int LostPacketIdPlusLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PacketId
Gets or sets the RTP sequence number of the lost packet.
Declaration
public int PacketId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PacketIdHandled
Gets or sets whether the packet with ID PacketId was retransmitted.
Declaration
public bool PacketIdHandled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Flush()
Updates this instance to reflect only the lost packets that were not retransmitted.
Declaration
public void Flush()
GetLostPacketIdPlus(Int32)
Gets whether the packet with ID PacketId + value was lost.
Declaration
public bool GetLostPacketIdPlus(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the packet was lost. |
GetLostPacketIdPlusHandled(Int32)
Gets whether the packet with ID PacketId + value was retransmitted.
Declaration
public bool GetLostPacketIdPlusHandled(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the packet was retransmitted. |
SetLostPacketIdPlus(Int32, Boolean)
Sets whether the packet with ID PacketId + value was lost.
Declaration
public void SetLostPacketIdPlus(int value, bool lost)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value. |
System.Boolean | lost | Whether the packet was lost. |
SetLostPacketIdPlusHandled(Int32, Boolean)
Sets whether the packet with ID PacketId + value was retransmitted.
Declaration
public void SetLostPacketIdPlusHandled(int value, bool handled)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value. |
System.Boolean | handled | Whether the packet was retransmitted. |