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
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class RtpSequenceNumberUnwrapper
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 |