View Source HLS.M3ULine (HLS v0.0.7)

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 existance 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.

Link to this function

get_attribute(line, key)

View Source

Retrieves the value of the given key from the M3ULine's attributes.

Link to this function

get_boolean_attribute(line, key)

View Source

Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is a boolean.

Link to this function

get_float_attribute(line, key)

View Source

Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is a float

Link to this function

get_integer_attribute(line, key)

View Source

Retrieves the value of the given key from the M3ULine's attributes while ensuring the result is an integer

Link to this function

has_attribute?(m3_u_line, key, value)

View Source

Checks the existance 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
Link to this function

image_stream_line?(line)

View Source

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.

Link to this function

subtitle_tag_line?(line)

View Source

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.