#[non_exhaustive]pub struct Options {
pub decoder: Config,
pub priority: i8,
pub start: Start,
pub delay: Delay,
}Expand description
How a Consumer subscribes to its track, and the decoder it feeds.
The subscription half is what a bare Decoder has no use
for: where to start on a cached track, and how far to fall behind live
before skipping. The decoder half is passed through as it is.
#[non_exhaustive]: build via Options::new (or default()) and set the
fields, so future knobs don’t break callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.decoder: ConfigThe decoder: backend, output representation, scaling hint.
priority: i8The subscription priority, ordering this track against the others on the session under
congestion: higher is sent first. Defaults to hang’s PRIORITY.video;
Consumer::set_priority moves it while running.
start: StartWhere to start on a track that already holds groups.
delay: DelayHow far behind the live edge playback runs. Delay::min is the
player’s playout delay, where a Start::Latest join starts, and is not
stated for Start::Oldest; Delay::max is how far playback may drift
before a stalled group is skipped. The min defaults to unstated, which
Start::Latest joins as zero, and the max to zero: skip aggressively.
Set min to your playout delay and max at or past it for a softer skip.
The max is applied to the transport subscription, and both reach
moq_mux::container::Consumer.