Skip to main content

jitter_buffer

Function jitter_buffer 

Source
pub fn jitter_buffer(
    source: Stream,
    clock: Symbol,
    max_late_packets: u32,
) -> Stream
Expand description

Reorders packets by clock tick, tolerating up to max_late_packets.

The buffer drains the source, sorts packets by their tick index on clock (stable on ties), and replays them in order. With max_late_packets of 0 any out-of-order packet is dropped rather than reordered.