pub struct HlsOptions {
pub playlist_path: PathBuf,
pub segment_pattern: PathBuf,
pub segment_duration: Duration,
pub mode: HlsMode,
pub segment_format: HlsSegmentFormat,
pub init_filename: String,
pub base_url: Option<String>,
}Expand description
Construction-time options for HlsMuxer.
Fields§
§playlist_path: PathBufMedia playlist written by FFmpeg, normally ending in .m3u8.
segment_pattern: PathBufprintf-style media segment path containing one integer conversion,
for example output/segment_%05d.m4s.
segment_duration: DurationTarget segment duration. FFmpeg cuts on the next video keyframe, so the actual duration can be longer when keyframes are sparse.
mode: HlsMode§segment_format: HlsSegmentFormat§init_filename: StringfMP4 initialization filename written beside the playlist and used
in #EXT-X-MAP. Ignored for HlsSegmentFormat::MpegTs.
base_url: Option<String>Optional URI prefix written before segment references in the media
playlist, for example https://cdn.example.com/live/.
Implementations§
Trait Implementations§
Source§impl Clone for HlsOptions
impl Clone for HlsOptions
Source§fn clone(&self) -> HlsOptions
fn clone(&self) -> HlsOptions
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 HlsOptions
impl RefUnwindSafe for HlsOptions
impl Send for HlsOptions
impl Sync for HlsOptions
impl Unpin for HlsOptions
impl UnsafeUnpin for HlsOptions
impl UnwindSafe for HlsOptions
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