View Source HLS.M3ULine (HLS v0.0.8)
Struct and functions to handle a line in the M3U8 file.
Link to this section Summary
Functions
Returns true if the provided M3ULine is an audio tag.
Retrieves the value of the given key from the M3ULine's attributes.
Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is a boolean.
Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is a float
Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is an integer
Checks the existence of the provide key, and that it matches the provide value.
Returns true if the provided M3ULine is an EXT-X-IMAGE-STREAM-INF tag, used for trick play
Returns true if the provided M3ULine is a segment tag.
Returns true if the provided M3ULine is a subtitle tag.
Returns true if the provided M3ULine is a URI.
Returns true if the provided M3ULine is a variant tag.
Link to this section Functions
Returns true if the provided M3ULine is an audio tag.
Retrieves the value of the given key from the M3ULine's attributes.
Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is a boolean.
Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is a float
Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is an integer
Checks the existence of the provide key, and that it matches the provide value.
example
Example
iex> has_attribute?(%HLS.M3ULine{}, "noexity", "no")
false
iex> has_attribute?(%HLS.M3ULine{attributes: %{"KEY" => "VAL}}, "key", "val")
true
Returns true if the provided M3ULine is an EXT-X-IMAGE-STREAM-INF tag, used for trick play
Returns true if the provided M3ULine is a segment tag.
Returns true if the provided M3ULine is a subtitle tag.
Returns true if the provided M3ULine is a URI.
Returns true if the provided M3ULine is a variant tag.