Struct hls_m3u8::builder::MediaSegmentBuilder [−][src]
pub struct MediaSegmentBuilder<'a> { /* fields omitted */ }
Expand description
Builder for MediaSegment
.
Implementations
This field specifies how to decrypt a MediaSegment
, which can only
be encrypted with one EncryptionMethod
, using one DecryptionKey
and DecryptionKey::iv
.
However, a server may offer multiple ways to retrieve that key by
providing multiple keys with different DecryptionKey::format
s.
Any unencrypted segment that is preceded by an encrypted segment must
have an ExtXKey::empty
. Otherwise, the client will misinterpret
those segments as encrypted.
The server may set the HTTP Expires header in the key response to indicate the duration for which the key can be cached.
Note
This field is optional and a missing value or an ExtXKey::empty()
indicates an unencrypted media segment.
This field specifies how to obtain the Media Initialization Section
required to parse the applicable MediaSegment
s.
Note
This field is optional, but should be specified for media segments in
playlists with an ExtXIFramesOnly
tag when the first MediaSegment
in the playlist (or the first segment following a segment marked with
MediaSegment::has_discontinuity
) does not immediately follow the
Media Initialization Section at the beginning of its resource.
This field indicates that a MediaSegment
is a sub-range of the
resource identified by its URI.
Note
This field is optional.
This field associates a date-range (i.e., a range of time defined by a starting and ending date) with a set of attribute/value pairs.
Note
This field is optional.
This field indicates a discontinuity between the MediaSegment
that
follows it and the one that preceded it.
Note
This field is required if any of the following characteristics change:
- file format
- number, type, and identifiers of tracks
- timestamp, sequence
This field should be present if any of the following characteristics change:
- encoding parameters
- encoding sequence
This field associates the first sample of a media segment with an absolute date and/or time.
Note
This field is optional.
Pushes an ExtXKey
tag.
The number of a MediaSegment
. Normally this should not be set
explicitly, because the MediaPlaylist::builder
will automatically
apply the correct number.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for MediaSegmentBuilder<'a>
impl<'a> Send for MediaSegmentBuilder<'a>
impl<'a> Sync for MediaSegmentBuilder<'a>
impl<'a> Unpin for MediaSegmentBuilder<'a>
impl<'a> UnwindSafe for MediaSegmentBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more