pub struct Manifest {
pub mpd_type: MpdType,
pub profile: DashProfile,
pub duration_seconds: Option<f64>,
pub availability_start_time: Option<String>,
pub publish_time: Option<String>,
pub minimum_update_period: Option<f64>,
pub time_shift_buffer_depth: Option<f64>,
pub suggested_presentation_delay: Option<f64>,
pub utc_timing: Option<UtcTiming>,
pub periods: Vec<Period>,
pub protection: Option<Protection>,
}Expand description
A complete DASH presentation (static or dynamic).
Fields§
§mpd_type: MpdTypeStatic vs dynamic MPD.
profile: DashProfileProfile family (live template vs on-demand base).
duration_seconds: Option<f64>Total media duration (static only); omitted on pure live.
availability_start_time: Option<String>Wall-clock origin for dynamic timelines (@availabilityStartTime).
publish_time: Option<String>When this MPD was published (@publishTime).
minimum_update_period: Option<f64>Client refresh interval for dynamic MPDs (@minimumUpdatePeriod).
time_shift_buffer_depth: Option<f64>Live edge buffer depth (@timeShiftBufferDepth).
suggested_presentation_delay: Option<f64>Suggested delay behind the live edge (@suggestedPresentationDelay).
utc_timing: Option<UtcTiming>Wall-clock timing source for dynamic MPDs.
periods: Vec<Period>One or more periods.
protection: Option<Protection>When set, emit ContentProtection elements (encrypted content).
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn static_vod(
duration_seconds: f64,
representations: Vec<Representation>,
protection: Option<Protection>,
) -> Self
pub fn static_vod( duration_seconds: f64, representations: Vec<Representation>, protection: Option<Protection>, ) -> Self
Convenience constructor for a single-period static VOD presentation.
This is the historical sheathe MPD shape and remains the default for the VOD package path.
Sourcepub fn dynamic_live(
availability_start_time: impl Into<String>,
publish_time: impl Into<String>,
time_shift_buffer_depth: f64,
minimum_update_period: f64,
suggested_presentation_delay: f64,
representations: Vec<Representation>,
protection: Option<Protection>,
) -> Self
pub fn dynamic_live( availability_start_time: impl Into<String>, publish_time: impl Into<String>, time_shift_buffer_depth: f64, minimum_update_period: f64, suggested_presentation_delay: f64, representations: Vec<Representation>, protection: Option<Protection>, ) -> Self
Convenience constructor for a single-period dynamic (live) presentation.