pub struct MuxerBuilder { /* private fields */ }
Expand description
Muxer builder.
Implementations§
Source§impl MuxerBuilder
impl MuxerBuilder
Sourcepub fn add_stream(&mut self, params: &CodecParameters) -> Result<usize, Error>
pub fn add_stream(&mut self, params: &CodecParameters) -> Result<usize, Error>
Add a new stream with given parameters and return index of the new stream.
Sourcepub fn streams_mut(&mut self) -> &mut [Stream]
pub fn streams_mut(&mut self) -> &mut [Stream]
Get mutable streams.
Sourcepub fn set_option<V>(self, name: &str, value: V) -> MuxerBuilderwhere
V: ToString,
pub fn set_option<V>(self, name: &str, value: V) -> MuxerBuilderwhere
V: ToString,
Set a muxer option.
Sourcepub fn set_metadata<V>(self, key: &str, value: V) -> Selfwhere
V: ToString,
pub fn set_metadata<V>(self, key: &str, value: V) -> Selfwhere
V: ToString,
Set container metadata.
Sourcepub fn interleaved(self, interleaved: bool) -> MuxerBuilder
pub fn interleaved(self, interleaved: bool) -> MuxerBuilder
Set the muxer to do the interleaving automatically. It is disabled by default.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MuxerBuilder
impl RefUnwindSafe for MuxerBuilder
impl Unpin for MuxerBuilder
impl UnwindSafe for MuxerBuilder
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