Class RtpSequenceNumberUnwrapper
Unwraps RTP sequence numbers (16-bit) to handle wraparound from 65535 to 0. The first unwrapped value equals the first value being unwrapped.
Inheritance
System.Object
RtpSequenceNumberUnwrapper
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class RtpSequenceNumberUnwrapper : object
Methods
PeekUnwrap(Int32)
Returns the unwrapped value without updating the internal state.
Declaration
public long PeekUnwrap(int sequenceNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | sequenceNumber |
Returns
| Type | Description |
|---|---|
| System.Int64 |
Reset()
Resets the unwrapper to its initial state.
Declaration
public void Reset()
Unwrap(Int32)
Unwraps the sequence number and updates the internal state.
Declaration
public long Unwrap(int sequenceNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | sequenceNumber |
Returns
| Type | Description |
|---|---|
| System.Int64 |