View Source HLS.M3ULine (HLS v0.0.10)
Struct and functions to handle a line in the M3U8 file.
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 an EXT-X-IMAGE-STREAM-INF tag, used for trick play
Parses a resolution string under the given attr on the line struct. Returns a tuple of {width, height}, as integers.
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.
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
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 an EXT-X-IMAGE-STREAM-INF tag, used for trick play
Parses a resolution string under the given attr on the line struct. Returns a tuple of {width, height}, as integers.
Expects a string at the given attr to look like 111x111.
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.