dash-runtime 0.4.0

Sans-IO MPEG-DASH (ISO/IEC 23009-1): MPD model and parser, segment addressing, UTC clock and live-edge arithmetic, and a client for static and dynamic presentations. No I/O, no clock reads.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Hostile-input bounds the player adds on top of the manifest reader's.
//!
//! The document and element bounds are the manifest reader's
//! ([`broadcast_dash::limits::Limits`]); this module owns the ones that limit
//! segment addressing and the BaseURL alternates a plan combines.

/// Most Media Segments one `SegmentTimeline` may describe once `@r` is
/// expanded. The expansion is lazy (run table, never one entry per segment),
/// so this bounds the arithmetic, not the memory.
pub const MAX_TIMELINE_SEGMENTS: u64 = 1_000_000;
/// Most candidate base locations kept when `BaseURL` alternates are combined
/// across levels.
pub const MAX_BASE_CANDIDATES: usize = 64;

/// The manifest reader's hostile-input bounds, re-exported so a player's
/// configuration names one type.
pub use broadcast_dash::limits::Limits;