pub struct HlsPlaylist { /* private fields */ }Available on crate feature
hls only.Expand description
A sliding-window HLS media playlist.
Holds the most recent window segments and renders a spec-compliant
#EXTM3U document. Set low_latency to emit #EXT-X-PART hints and the
LL-HLS preload/blocking tags (the segmenter supplies parts).
Implementations§
Source§impl HlsPlaylist
impl HlsPlaylist
Sourcepub fn new(target_duration: u64, window: usize) -> Self
pub fn new(target_duration: u64, window: usize) -> Self
A live playlist holding window segments of up to target_duration secs.
Sourcepub fn low_latency(self, part_target: f64) -> Self
pub fn low_latency(self, part_target: f64) -> Self
Enable LL-HLS output with the given partial-segment target duration.
Sourcepub fn set_map(&mut self, uri: impl Into<String>)
pub fn set_map(&mut self, uri: impl Into<String>)
Set the fMP4 initialization-segment URI, emitted as #EXT-X-MAP.
Required for fragmented-MP4 renditions (HEVC, AV1, VVC).
Trait Implementations§
Source§impl Clone for HlsPlaylist
impl Clone for HlsPlaylist
Source§fn clone(&self) -> HlsPlaylist
fn clone(&self) -> HlsPlaylist
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HlsPlaylist
impl RefUnwindSafe for HlsPlaylist
impl Send for HlsPlaylist
impl Sync for HlsPlaylist
impl Unpin for HlsPlaylist
impl UnsafeUnpin for HlsPlaylist
impl UnwindSafe for HlsPlaylist
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more