Struct hls_m3u8::tags::ExtXMap[][src]

pub struct ExtXMap<'a> { /* fields omitted */ }
Expand description

The ExtXMap tag specifies how to obtain the Media Initialization Section, required to parse the applicable MediaSegments.

It applies to every MediaSegment that appears after it in the playlist until the next ExtXMap tag or until the end of the playlist.

An ExtXMap tag should be supplied for MediaSegments in playlists with the ExtXIFramesOnly tag when the first MediaSegment (i.e., I-frame) in the playlist (or the first segment following an ExtXDiscontinuity tag) does not immediately follow the Media Initialization Section at the beginning of its resource.

If the Media Initialization Section declared by an ExtXMap tag is encrypted with EncryptionMethod::Aes128, the IV attribute of the ExtXKey tag that applies to the ExtXMap is required.

Implementations

The URI that identifies a resource, that contains the media initialization section.

The URI that identifies a resource, that contains the media initialization section.

The range of the media initialization section.

The range of the media initialization section.

Makes a new ExtXMap tag.

Example

let map = ExtXMap::new("https://prod.mediaspace.com/init.bin");

Makes a new ExtXMap tag with the given range.

Example

use hls_m3u8::types::ByteRange;

let map = ExtXMap::with_range("https://prod.mediaspace.com/init.bin", 2..11);

Makes the struct independent of its lifetime, by taking ownership of all internal Cows.

Note

This is a relatively expensive operation.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns all keys, associated with the type. Read more

Most of the time only a single key is provided, so instead of iterating through all keys, one might as well just get the first key. Read more

Returns the number of keys.

Returns true, if the number of keys is zero.

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.