pub struct HlsMuxer { /* private fields */ }Expand description
Builds one HLS media playlist and returns one Sink per registered
track. FFmpeg owns segment boundary selection, fMP4/MPEG-TS creation,
atomic playlist replacement, live-window trimming, and final
#EXT-X-ENDLIST generation.
This deliberately has the same two-phase shape as
crate::elements::Mp4Muxer: call HlsMuxer::add_stream for every
track before HlsMuxer::open writes the header. The returned sinks
share one output lock and finalize the playlist only after every track
reports Eos or ControlMsg::Stop.
Implementations§
Source§impl HlsMuxer
impl HlsMuxer
Sourcepub fn create(options: HlsOptions) -> Result<Self>
pub fn create(options: HlsOptions) -> Result<Self>
Allocates FFmpeg’s HLS output context. Parent directories for the playlist, segment pattern, and fMP4 init file must already exist.
Auto Trait Implementations§
impl !Sync for HlsMuxer
impl Freeze for HlsMuxer
impl RefUnwindSafe for HlsMuxer
impl Send for HlsMuxer
impl Unpin for HlsMuxer
impl UnsafeUnpin for HlsMuxer
impl UnwindSafe for HlsMuxer
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