View Source Membrane.RTP.SequenceNumberTracker (Membrane RTP plugin v0.29.0)
A module used to map 16-bit sequence number to a continuous index without rollovers. It also detectes repeated and lost packets
Summary
Functions
Initializes new SequenceNumberTracker
Main function of the Tracker that returns a difference to the newest package and packet's monotonic index
Types
@type t() :: %Membrane.RTP.SequenceNumberTracker{ highest_seen_index: nil | non_neg_integer() }
Functions
@spec new() :: t()
Initializes new SequenceNumberTracker
@spec track(t(), Membrane.RTP.Header.sequence_number_t()) :: {integer(), non_neg_integer(), t()}
Main function of the Tracker that returns a difference to the newest package and packet's monotonic index