pub fn track_info(priority: i8) -> InfoExpand description
Track properties for creating a track that carries Frames, via
create_track or
accept.
Pins the track’s timescale to TIMESCALE, since moq_net::track::Info::default() is
untimed and refuses timestamped frames. Microseconds match the container prefix, so the
net-level frame timestamps that moq-lite-05 and later delta-encode on the wire aren’t
quantized. Chain
with_timescale for a container that carries the
source’s own scale instead (CMAF and Matroska both do).
Also declares MAX_AGE, long enough for a segmented egress to serve a full playlist window,
which is why every media track should start here rather than at Info::default(), whose max
age is zero. It bounds how long a superseded group stays fresh and caps what a subscriber may
ask to wait for, so it never makes anyone play further behind live: the default subscription
joins at Start::LATEST, whose max is zero (skip the moment
a newer group arrives).
priority is the publisher’s tie-break priority, and should come from
PRIORITY so every publisher orders its kinds the
same way (PRIORITY.video for a video track, and so on). It’s a parameter
rather than a default because there is no correct value for “some media
track”: leaving it at the unset 0 is what puts audio and video in one undifferentiated
tier, both on the wire and in
bandwidth::Allocator.