fm.liveswitch.GenericNack Class Reference

A Generic NACK feedback message. More...

Public Member Functions

void flush ()
 Updates this instance to reflect only the lost packets that were not retransmitted. More...
 
 GenericNack ()
 Initializes a new instance of the fm.liveswitch.GenericNack class. More...
 
 GenericNack (fm.liveswitch.DataBuffer buffer)
 Initializes a new instance of the fm.liveswitch.GenericNack class. More...
 
int getBitmaskOfLostPackets ()
 Gets the bitmask of lost packets. More...
 
fm.liveswitch.DataBuffer getDataBuffer ()
 Gets the data buffer. More...
 
boolean getHandled ()
 Gets a value indicating whether all lost packets were retransmitted. More...
 
boolean getLostPacketIdPlus (int value)
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was lost. More...
 
boolean getLostPacketIdPlus10Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 10 was retransmitted. More...
 
boolean getLostPacketIdPlus11Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 11 was retransmitted. More...
 
boolean getLostPacketIdPlus12Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 12 was retransmitted. More...
 
boolean getLostPacketIdPlus13Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 13 was retransmitted. More...
 
boolean getLostPacketIdPlus14Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 14 was retransmitted. More...
 
boolean getLostPacketIdPlus15Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 15 was retransmitted. More...
 
boolean getLostPacketIdPlus16Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 16 was retransmitted. More...
 
boolean getLostPacketIdPlus1Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 1 was retransmitted. More...
 
boolean getLostPacketIdPlus2Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 2 was retransmitted. More...
 
boolean getLostPacketIdPlus3Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 3 was retransmitted. More...
 
boolean getLostPacketIdPlus4Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 4 was retransmitted. More...
 
boolean getLostPacketIdPlus5Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 5 was retransmitted. More...
 
boolean getLostPacketIdPlus6Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 6 was retransmitted. More...
 
boolean getLostPacketIdPlus7Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 7 was retransmitted. More...
 
boolean getLostPacketIdPlus8Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 8 was retransmitted. More...
 
boolean getLostPacketIdPlus9Handled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 9 was retransmitted. More...
 
boolean getLostPacketIdPlusHandled (int value)
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was retransmitted. More...
 
int getLostPacketIdPlusLength ()
 Gets the length of the lost packet identifier plus. More...
 
int getPacketId ()
 Gets the RTP sequence number of the lost packet. More...
 
boolean getPacketIdHandled ()
 Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId was retransmitted. More...
 
void setBitmaskOfLostPackets (int value)
 Sets the bitmask of lost packets. More...
 
void setLostPacketIdPlus (int value, boolean lost)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was lost. More...
 
void setLostPacketIdPlus10Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 10 was retransmitted. More...
 
void setLostPacketIdPlus11Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 11 was retransmitted. More...
 
void setLostPacketIdPlus12Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 12 was retransmitted. More...
 
void setLostPacketIdPlus13Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 13 was retransmitted. More...
 
void setLostPacketIdPlus14Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 14 was retransmitted. More...
 
void setLostPacketIdPlus15Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 15 was retransmitted. More...
 
void setLostPacketIdPlus16Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 16 was retransmitted. More...
 
void setLostPacketIdPlus1Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 1 was retransmitted. More...
 
void setLostPacketIdPlus2Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 2 was retransmitted. More...
 
void setLostPacketIdPlus3Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 3 was retransmitted. More...
 
void setLostPacketIdPlus4Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 4 was retransmitted. More...
 
void setLostPacketIdPlus5Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 5 was retransmitted. More...
 
void setLostPacketIdPlus6Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 6 was retransmitted. More...
 
void setLostPacketIdPlus7Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 7 was retransmitted. More...
 
void setLostPacketIdPlus8Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 8 was retransmitted. More...
 
void setLostPacketIdPlus9Handled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 9 was retransmitted. More...
 
void setLostPacketIdPlusHandled (int value, boolean handled)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was retransmitted. More...
 
void setPacketId (int value)
 Sets the RTP sequence number of the lost packet. More...
 
void setPacketIdHandled (boolean value)
 Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId was retransmitted. More...
 

Static Public Member Functions

static int getFixedPayloadLength ()
 Gets the length of the registered fixed payload. More...
 

Detailed Description

A Generic NACK feedback message.

Constructor & Destructor Documentation

◆ GenericNack() [1/2]

fm.liveswitch.GenericNack.GenericNack ( )

Initializes a new instance of the fm.liveswitch.GenericNack class.

◆ GenericNack() [2/2]

fm.liveswitch.GenericNack.GenericNack ( fm.liveswitch.DataBuffer  buffer)

Initializes a new instance of the fm.liveswitch.GenericNack class.

Parameters
bufferThe buffer.

Member Function Documentation

◆ flush()

void fm.liveswitch.GenericNack.flush ( )

Updates this instance to reflect only the lost packets that were not retransmitted.

◆ getBitmaskOfLostPackets()

int fm.liveswitch.GenericNack.getBitmaskOfLostPackets ( )

Gets the bitmask of lost packets.

◆ getDataBuffer()

fm.liveswitch.DataBuffer fm.liveswitch.GenericNack.getDataBuffer ( )

Gets the data buffer.

◆ getFixedPayloadLength()

static int fm.liveswitch.GenericNack.getFixedPayloadLength ( )
static

Gets the length of the registered fixed payload.

◆ getHandled()

boolean fm.liveswitch.GenericNack.getHandled ( )

Gets a value indicating whether all lost packets were retransmitted.

◆ getLostPacketIdPlus()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus ( int  value)

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was lost.

Parameters
valueThe value.
Returns
Whether the packet was lost.

◆ getLostPacketIdPlus10Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus10Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 10 was retransmitted.

◆ getLostPacketIdPlus11Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus11Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 11 was retransmitted.

◆ getLostPacketIdPlus12Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus12Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 12 was retransmitted.

◆ getLostPacketIdPlus13Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus13Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 13 was retransmitted.

◆ getLostPacketIdPlus14Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus14Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 14 was retransmitted.

◆ getLostPacketIdPlus15Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus15Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 15 was retransmitted.

◆ getLostPacketIdPlus16Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus16Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 16 was retransmitted.

◆ getLostPacketIdPlus1Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus1Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 1 was retransmitted.

◆ getLostPacketIdPlus2Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus2Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 2 was retransmitted.

◆ getLostPacketIdPlus3Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus3Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 3 was retransmitted.

◆ getLostPacketIdPlus4Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus4Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 4 was retransmitted.

◆ getLostPacketIdPlus5Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus5Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 5 was retransmitted.

◆ getLostPacketIdPlus6Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus6Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 6 was retransmitted.

◆ getLostPacketIdPlus7Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus7Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 7 was retransmitted.

◆ getLostPacketIdPlus8Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus8Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 8 was retransmitted.

◆ getLostPacketIdPlus9Handled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlus9Handled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 9 was retransmitted.

◆ getLostPacketIdPlusHandled()

boolean fm.liveswitch.GenericNack.getLostPacketIdPlusHandled ( int  value)

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was retransmitted.

Parameters
valueThe value.
Returns
Whether the packet was retransmitted.

◆ getLostPacketIdPlusLength()

int fm.liveswitch.GenericNack.getLostPacketIdPlusLength ( )

Gets the length of the lost packet identifier plus.

◆ getPacketId()

int fm.liveswitch.GenericNack.getPacketId ( )

Gets the RTP sequence number of the lost packet.

◆ getPacketIdHandled()

boolean fm.liveswitch.GenericNack.getPacketIdHandled ( )

Gets whether the packet with ID fm.liveswitch.GenericNack#getPacketId was retransmitted.

◆ setBitmaskOfLostPackets()

void fm.liveswitch.GenericNack.setBitmaskOfLostPackets ( int  value)

Sets the bitmask of lost packets.

◆ setLostPacketIdPlus()

void fm.liveswitch.GenericNack.setLostPacketIdPlus ( int  value,
boolean  lost 
)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was lost.

Parameters
valueThe value.
lostWhether the packet was lost.

◆ setLostPacketIdPlus10Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus10Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 10 was retransmitted.

◆ setLostPacketIdPlus11Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus11Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 11 was retransmitted.

◆ setLostPacketIdPlus12Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus12Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 12 was retransmitted.

◆ setLostPacketIdPlus13Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus13Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 13 was retransmitted.

◆ setLostPacketIdPlus14Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus14Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 14 was retransmitted.

◆ setLostPacketIdPlus15Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus15Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 15 was retransmitted.

◆ setLostPacketIdPlus16Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus16Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 16 was retransmitted.

◆ setLostPacketIdPlus1Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus1Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 1 was retransmitted.

◆ setLostPacketIdPlus2Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus2Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 2 was retransmitted.

◆ setLostPacketIdPlus3Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus3Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 3 was retransmitted.

◆ setLostPacketIdPlus4Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus4Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 4 was retransmitted.

◆ setLostPacketIdPlus5Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus5Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 5 was retransmitted.

◆ setLostPacketIdPlus6Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus6Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 6 was retransmitted.

◆ setLostPacketIdPlus7Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus7Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 7 was retransmitted.

◆ setLostPacketIdPlus8Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus8Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 8 was retransmitted.

◆ setLostPacketIdPlus9Handled()

void fm.liveswitch.GenericNack.setLostPacketIdPlus9Handled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + 9 was retransmitted.

◆ setLostPacketIdPlusHandled()

void fm.liveswitch.GenericNack.setLostPacketIdPlusHandled ( int  value,
boolean  handled 
)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId + value was retransmitted.

Parameters
valueThe value.
handledWhether the packet was retransmitted.

◆ setPacketId()

void fm.liveswitch.GenericNack.setPacketId ( int  value)

Sets the RTP sequence number of the lost packet.

◆ setPacketIdHandled()

void fm.liveswitch.GenericNack.setPacketIdHandled ( boolean  value)

Sets whether the packet with ID fm.liveswitch.GenericNack#getPacketId was retransmitted.