Skip to main content

MAX_AGE

Constant MAX_AGE 

Source
pub const MAX_AGE: Duration;
Expand description

How long a superseded group of a media track stays fresh: the media publisher’s explicit choice, which track_info declares on every media track.

Media is read as history rather than followed at the live edge: a segmented egress (HLS/DASH) may only advertise segments a FETCH can still reach, a standard player starts several target durations behind live, and a recorder absorbs reordering. moq-net’s default of zero suits a live-edge follower and would leave those addressing groups that are already stale. The catalog declares it too (Catalog::default_track_info), since a reader holding each update until its timestamp plays as far behind as the media.

Declared per track rather than as moq-net’s default, so the tracks that do not index history keep the live edge alone: an HLS record track restates its window in each new group, and its newest group never goes stale.