Skip to main content

TrackProvider

Trait TrackProvider 

Source
pub trait TrackProvider: Send + Sync {
    // Required method
    fn tracks(&self) -> Vec<TrackSpec>;
}
Available on crate feature std only.
Expand description

The tracks the origin should describe, given the Trunk it reads.

Like SegmentProvider, which track set a program presents is the host’s own bookkeeping (the one its DASH window and HLS origin already use), so the origin asks for it. A Trunk’s own announcement is the plain adapter for a host that publishes there.

Required Methods§

Source

fn tracks(&self) -> Vec<TrackSpec>

The program’s current track specs, in manifest order.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> TrackProvider for F
where F: Fn() -> Vec<TrackSpec> + Send + Sync,