Skip to main content

STARTUP_WINDOW

Constant STARTUP_WINDOW 

Source
pub const STARTUP_WINDOW: Duration;
Expand description

How far back a new subscriber may start relative to the newest cached frame. Bounding the startup window keeps the on-screen delay close to the real-time edge instead of replaying the whole cache.

Low-latency trade-off: a fresh player first replays this window (paced at media rate), so the on-screen delay equals roughly the window length until it catches the live edge. 500ms keeps startup delay in the sub-second range (VLC + zerolatency encoder total ~300-800ms); the window still starts at the nearest keyframe so decoding is immediate.