Skip to main content

hang/container/
mod.rs

1/// How long a superseded group of a media track stays fresh: the media publisher's explicit
2/// choice, which [`track_info`] declares on every media track.
3///
4/// Media is read as history rather than followed at the live edge: a segmented egress (HLS/DASH)
5/// may only advertise segments a FETCH can still reach, a standard player starts several target
6/// durations behind live, and a recorder absorbs reordering. moq-net's default of zero suits a
7/// live-edge follower and would leave those addressing groups that are already stale. The catalog
8/// declares it too ([`Catalog::default_track_info`](crate::Catalog::default_track_info)), since a
9/// reader holding each update until its timestamp plays as far behind as the media.
10///
11/// Declared per track rather than as moq-net's default, so the tracks that do not index history
12/// keep the live edge alone: an HLS record track restates its window in each new group, and its
13/// newest group never goes stale.
14pub const MAX_AGE: std::time::Duration = std::time::Duration::from_secs(30);
15
16mod frame;
17
18pub use frame::*;