FMLiveSwitchRtpSequenceNumberUnwrapper Class Reference

Unwraps RTP sequence numbers (16-bit) to handle wraparound from 65535 to 0. More...

Instance Methods

(instancetype) - init
 
(long long) - peekUnwrapWithSequenceNumber:
 Returns the unwrapped value without updating the internal state. More...
 
(void) - reset
 Resets the unwrapper to its initial state. More...
 
(long long) - unwrapWithSequenceNumber:
 Unwraps the sequence number and updates the internal state. More...
 

Class Methods

(FMLiveSwitchRtpSequenceNumberUnwrapper *) + rtpSequenceNumberUnwrapper
 

Detailed Description

Unwraps RTP sequence numbers (16-bit) to handle wraparound from 65535 to 0.

The first unwrapped value equals the first value being unwrapped.

Method Documentation

◆ init

- (instancetype) init

◆ peekUnwrapWithSequenceNumber:

- (long long) peekUnwrapWithSequenceNumber: (int)  sequenceNumber

Returns the unwrapped value without updating the internal state.

◆ reset

- (void) reset

Resets the unwrapper to its initial state.

◆ rtpSequenceNumberUnwrapper

+ (FMLiveSwitchRtpSequenceNumberUnwrapper*) rtpSequenceNumberUnwrapper

◆ unwrapWithSequenceNumber:

- (long long) unwrapWithSequenceNumber: (int)  sequenceNumber

Unwraps the sequence number and updates the internal state.