Struct hls_m3u8::MediaPlaylistOptions [−][src]
pub struct MediaPlaylistOptions { /* fields omitted */ }
Media playlist options.
Methods
impl MediaPlaylistOptions
[src]
impl MediaPlaylistOptions
pub fn new() -> Self
[src]
pub fn new() -> Self
Makes a new MediaPlaylistOptions
with the default settings.
ⓘImportant traits for &'a mut Rpub fn allowable_excess_segment_duration(
&mut self,
allowable_excess_duration: Duration
) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn allowable_excess_segment_duration(
&mut self,
allowable_excess_duration: Duration
) -> &mut Self
Sets the allowable excess duration of each media segment in the associated playlist.
If there is a media segment of which duration exceeds
#EXT-X-TARGETDURATION + allowable_excess_duration
,
the invocation of MediaPlaylistBuilder::finish()
method will fail.
The default value is Duration::from_secs(0)
.
pub fn parse(&self, m3u8: &str) -> Result<MediaPlaylist>
[src]
pub fn parse(&self, m3u8: &str) -> Result<MediaPlaylist>
Parses the given M3U8 text with the specified settings.
Trait Implementations
impl Debug for MediaPlaylistOptions
[src]
impl Debug for MediaPlaylistOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MediaPlaylistOptions
[src]
impl Clone for MediaPlaylistOptions
fn clone(&self) -> MediaPlaylistOptions
[src]
fn clone(&self) -> MediaPlaylistOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for MediaPlaylistOptions
[src]
impl Default for MediaPlaylistOptions
Auto Trait Implementations
impl Send for MediaPlaylistOptions
impl Send for MediaPlaylistOptions
impl Sync for MediaPlaylistOptions
impl Sync for MediaPlaylistOptions