FMLiveSwitchGenericNack Class Reference

A Generic NACK feedback message. More...

Instance Methods

(int) - bitmaskOfLostPackets
 Gets the bitmask of lost packets. More...
 
(FMLiveSwitchDataBuffer *) - dataBuffer
 Gets the data buffer. More...
 
(void) - flush
 Updates this instance to reflect only the lost packets that were not retransmitted. More...
 
(bool) - getLostPacketIdPlus:
 Gets whether the packet with ID packetId + value was lost. More...
 
(bool) - getLostPacketIdPlusHandled:
 Gets whether the packet with ID packetId + value was retransmitted. More...
 
(bool) - handled
 Gets a value indicating whether all lost packets were retransmitted. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchGenericNack class. More...
 
(instancetype) - initWithBuffer:
 Initializes a new instance of the FMLiveSwitchGenericNack class. More...
 
(bool) - lostPacketIdPlus10Handled
 Gets whether the packet with ID packetId + 10 was retransmitted. More...
 
(bool) - lostPacketIdPlus11Handled
 Gets whether the packet with ID packetId + 11 was retransmitted. More...
 
(bool) - lostPacketIdPlus12Handled
 Gets whether the packet with ID packetId + 12 was retransmitted. More...
 
(bool) - lostPacketIdPlus13Handled
 Gets whether the packet with ID packetId + 13 was retransmitted. More...
 
(bool) - lostPacketIdPlus14Handled
 Gets whether the packet with ID packetId + 14 was retransmitted. More...
 
(bool) - lostPacketIdPlus15Handled
 Gets whether the packet with ID packetId + 15 was retransmitted. More...
 
(bool) - lostPacketIdPlus16Handled
 Gets whether the packet with ID packetId + 16 was retransmitted. More...
 
(bool) - lostPacketIdPlus1Handled
 Gets whether the packet with ID packetId + 1 was retransmitted. More...
 
(bool) - lostPacketIdPlus2Handled
 Gets whether the packet with ID packetId + 2 was retransmitted. More...
 
(bool) - lostPacketIdPlus3Handled
 Gets whether the packet with ID packetId + 3 was retransmitted. More...
 
(bool) - lostPacketIdPlus4Handled
 Gets whether the packet with ID packetId + 4 was retransmitted. More...
 
(bool) - lostPacketIdPlus5Handled
 Gets whether the packet with ID packetId + 5 was retransmitted. More...
 
(bool) - lostPacketIdPlus6Handled
 Gets whether the packet with ID packetId + 6 was retransmitted. More...
 
(bool) - lostPacketIdPlus7Handled
 Gets whether the packet with ID packetId + 7 was retransmitted. More...
 
(bool) - lostPacketIdPlus8Handled
 Gets whether the packet with ID packetId + 8 was retransmitted. More...
 
(bool) - lostPacketIdPlus9Handled
 Gets whether the packet with ID packetId + 9 was retransmitted. More...
 
(int) - lostPacketIdPlusLength
 Gets the length of the lost packet identifier plus. More...
 
(int) - packetId
 Gets the RTP sequence number of the lost packet. More...
 
(bool) - packetIdHandled
 Gets whether the packet with ID packetId was retransmitted. More...
 
(void) - setBitmaskOfLostPackets:
 Sets the bitmask of lost packets. More...
 
(void) - setLostPacketIdPlus:lost:
 Sets whether the packet with ID packetId + value was lost. More...
 
(void) - setLostPacketIdPlus10Handled:
 Sets whether the packet with ID packetId + 10 was retransmitted. More...
 
(void) - setLostPacketIdPlus11Handled:
 Sets whether the packet with ID packetId + 11 was retransmitted. More...
 
(void) - setLostPacketIdPlus12Handled:
 Sets whether the packet with ID packetId + 12 was retransmitted. More...
 
(void) - setLostPacketIdPlus13Handled:
 Sets whether the packet with ID packetId + 13 was retransmitted. More...
 
(void) - setLostPacketIdPlus14Handled:
 Sets whether the packet with ID packetId + 14 was retransmitted. More...
 
(void) - setLostPacketIdPlus15Handled:
 Sets whether the packet with ID packetId + 15 was retransmitted. More...
 
(void) - setLostPacketIdPlus16Handled:
 Sets whether the packet with ID packetId + 16 was retransmitted. More...
 
(void) - setLostPacketIdPlus1Handled:
 Sets whether the packet with ID packetId + 1 was retransmitted. More...
 
(void) - setLostPacketIdPlus2Handled:
 Sets whether the packet with ID packetId + 2 was retransmitted. More...
 
(void) - setLostPacketIdPlus3Handled:
 Sets whether the packet with ID packetId + 3 was retransmitted. More...
 
(void) - setLostPacketIdPlus4Handled:
 Sets whether the packet with ID packetId + 4 was retransmitted. More...
 
(void) - setLostPacketIdPlus5Handled:
 Sets whether the packet with ID packetId + 5 was retransmitted. More...
 
(void) - setLostPacketIdPlus6Handled:
 Sets whether the packet with ID packetId + 6 was retransmitted. More...
 
(void) - setLostPacketIdPlus7Handled:
 Sets whether the packet with ID packetId + 7 was retransmitted. More...
 
(void) - setLostPacketIdPlus8Handled:
 Sets whether the packet with ID packetId + 8 was retransmitted. More...
 
(void) - setLostPacketIdPlus9Handled:
 Sets whether the packet with ID packetId + 9 was retransmitted. More...
 
(void) - setLostPacketIdPlusHandled:handled:
 Sets whether the packet with ID packetId + value was retransmitted. More...
 
(void) - setPacketId:
 Sets the RTP sequence number of the lost packet. More...
 
(void) - setPacketIdHandled:
 Sets whether the packet with ID packetId was retransmitted. More...
 

Class Methods

(int) + fixedPayloadLength
 Gets the length of the registered fixed payload. More...
 
(FMLiveSwitchGenericNack *) + genericNack
 Initializes a new instance of the FMLiveSwitchGenericNack class. More...
 
(FMLiveSwitchGenericNack *) + genericNackWithBuffer:
 Initializes a new instance of the FMLiveSwitchGenericNack class. More...
 

Detailed Description

A Generic NACK feedback message.

Method Documentation

◆ bitmaskOfLostPackets

- (int) bitmaskOfLostPackets

Gets the bitmask of lost packets.

◆ dataBuffer

- (FMLiveSwitchDataBuffer*) dataBuffer

Gets the data buffer.

◆ fixedPayloadLength

+ (int) fixedPayloadLength

Gets the length of the registered fixed payload.

◆ flush

- (void) flush

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

◆ genericNack

+ (FMLiveSwitchGenericNack*) genericNack

Initializes a new instance of the FMLiveSwitchGenericNack class.

◆ genericNackWithBuffer:

+ (FMLiveSwitchGenericNack*) genericNackWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Initializes a new instance of the FMLiveSwitchGenericNack class.

Parameters
bufferThe buffer.

◆ getLostPacketIdPlus:

- (bool) getLostPacketIdPlus: (int)  value

Gets whether the packet with ID packetId + value was lost.

Parameters
valueThe value.
Returns
Whether the packet was lost.

◆ getLostPacketIdPlusHandled:

- (bool) getLostPacketIdPlusHandled: (int)  value

Gets whether the packet with ID packetId + value was retransmitted.

Parameters
valueThe value.
Returns
Whether the packet was retransmitted.

◆ handled

- (bool) handled

Gets a value indicating whether all lost packets were retransmitted.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchGenericNack class.

◆ initWithBuffer:

- (instancetype) initWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Initializes a new instance of the FMLiveSwitchGenericNack class.

Parameters
bufferThe buffer.

◆ lostPacketIdPlus10Handled

- (bool) lostPacketIdPlus10Handled

Gets whether the packet with ID packetId + 10 was retransmitted.

◆ lostPacketIdPlus11Handled

- (bool) lostPacketIdPlus11Handled

Gets whether the packet with ID packetId + 11 was retransmitted.

◆ lostPacketIdPlus12Handled

- (bool) lostPacketIdPlus12Handled

Gets whether the packet with ID packetId + 12 was retransmitted.

◆ lostPacketIdPlus13Handled

- (bool) lostPacketIdPlus13Handled

Gets whether the packet with ID packetId + 13 was retransmitted.

◆ lostPacketIdPlus14Handled

- (bool) lostPacketIdPlus14Handled

Gets whether the packet with ID packetId + 14 was retransmitted.

◆ lostPacketIdPlus15Handled

- (bool) lostPacketIdPlus15Handled

Gets whether the packet with ID packetId + 15 was retransmitted.

◆ lostPacketIdPlus16Handled

- (bool) lostPacketIdPlus16Handled

Gets whether the packet with ID packetId + 16 was retransmitted.

◆ lostPacketIdPlus1Handled

- (bool) lostPacketIdPlus1Handled

Gets whether the packet with ID packetId + 1 was retransmitted.

◆ lostPacketIdPlus2Handled

- (bool) lostPacketIdPlus2Handled

Gets whether the packet with ID packetId + 2 was retransmitted.

◆ lostPacketIdPlus3Handled

- (bool) lostPacketIdPlus3Handled

Gets whether the packet with ID packetId + 3 was retransmitted.

◆ lostPacketIdPlus4Handled

- (bool) lostPacketIdPlus4Handled

Gets whether the packet with ID packetId + 4 was retransmitted.

◆ lostPacketIdPlus5Handled

- (bool) lostPacketIdPlus5Handled

Gets whether the packet with ID packetId + 5 was retransmitted.

◆ lostPacketIdPlus6Handled

- (bool) lostPacketIdPlus6Handled

Gets whether the packet with ID packetId + 6 was retransmitted.

◆ lostPacketIdPlus7Handled

- (bool) lostPacketIdPlus7Handled

Gets whether the packet with ID packetId + 7 was retransmitted.

◆ lostPacketIdPlus8Handled

- (bool) lostPacketIdPlus8Handled

Gets whether the packet with ID packetId + 8 was retransmitted.

◆ lostPacketIdPlus9Handled

- (bool) lostPacketIdPlus9Handled

Gets whether the packet with ID packetId + 9 was retransmitted.

◆ lostPacketIdPlusLength

- (int) lostPacketIdPlusLength

Gets the length of the lost packet identifier plus.

◆ packetId

- (int) packetId

Gets the RTP sequence number of the lost packet.

◆ packetIdHandled

- (bool) packetIdHandled

Gets whether the packet with ID packetId was retransmitted.

◆ setBitmaskOfLostPackets:

- (void) setBitmaskOfLostPackets: (int)  value

Sets the bitmask of lost packets.

◆ setLostPacketIdPlus10Handled:

- (void) setLostPacketIdPlus10Handled: (bool)  value

Sets whether the packet with ID packetId + 10 was retransmitted.

◆ setLostPacketIdPlus11Handled:

- (void) setLostPacketIdPlus11Handled: (bool)  value

Sets whether the packet with ID packetId + 11 was retransmitted.

◆ setLostPacketIdPlus12Handled:

- (void) setLostPacketIdPlus12Handled: (bool)  value

Sets whether the packet with ID packetId + 12 was retransmitted.

◆ setLostPacketIdPlus13Handled:

- (void) setLostPacketIdPlus13Handled: (bool)  value

Sets whether the packet with ID packetId + 13 was retransmitted.

◆ setLostPacketIdPlus14Handled:

- (void) setLostPacketIdPlus14Handled: (bool)  value

Sets whether the packet with ID packetId + 14 was retransmitted.

◆ setLostPacketIdPlus15Handled:

- (void) setLostPacketIdPlus15Handled: (bool)  value

Sets whether the packet with ID packetId + 15 was retransmitted.

◆ setLostPacketIdPlus16Handled:

- (void) setLostPacketIdPlus16Handled: (bool)  value

Sets whether the packet with ID packetId + 16 was retransmitted.

◆ setLostPacketIdPlus1Handled:

- (void) setLostPacketIdPlus1Handled: (bool)  value

Sets whether the packet with ID packetId + 1 was retransmitted.

◆ setLostPacketIdPlus2Handled:

- (void) setLostPacketIdPlus2Handled: (bool)  value

Sets whether the packet with ID packetId + 2 was retransmitted.

◆ setLostPacketIdPlus3Handled:

- (void) setLostPacketIdPlus3Handled: (bool)  value

Sets whether the packet with ID packetId + 3 was retransmitted.

◆ setLostPacketIdPlus4Handled:

- (void) setLostPacketIdPlus4Handled: (bool)  value

Sets whether the packet with ID packetId + 4 was retransmitted.

◆ setLostPacketIdPlus5Handled:

- (void) setLostPacketIdPlus5Handled: (bool)  value

Sets whether the packet with ID packetId + 5 was retransmitted.

◆ setLostPacketIdPlus6Handled:

- (void) setLostPacketIdPlus6Handled: (bool)  value

Sets whether the packet with ID packetId + 6 was retransmitted.

◆ setLostPacketIdPlus7Handled:

- (void) setLostPacketIdPlus7Handled: (bool)  value

Sets whether the packet with ID packetId + 7 was retransmitted.

◆ setLostPacketIdPlus8Handled:

- (void) setLostPacketIdPlus8Handled: (bool)  value

Sets whether the packet with ID packetId + 8 was retransmitted.

◆ setLostPacketIdPlus9Handled:

- (void) setLostPacketIdPlus9Handled: (bool)  value

Sets whether the packet with ID packetId + 9 was retransmitted.

◆ setLostPacketIdPlus:lost:

- (void) setLostPacketIdPlus: (int)  value
lost: (bool)  lost 

Sets whether the packet with ID packetId + value was lost.

Parameters
valueThe value.
lostWhether the packet was lost.

◆ setLostPacketIdPlusHandled:handled:

- (void) setLostPacketIdPlusHandled: (int)  value
handled: (bool)  handled 

Sets whether the packet with ID packetId + value was retransmitted.

Parameters
valueThe value.
handledWhether the packet was retransmitted.

◆ setPacketId:

- (void) setPacketId: (int)  value

Sets the RTP sequence number of the lost packet.

◆ setPacketIdHandled:

- (void) setPacketIdHandled: (bool)  value

Sets whether the packet with ID packetId was retransmitted.