class M3U8::MediaItem

Overview

MediaItem represents a set of EXT-X-MEDIA attributes

Included Modules

Extended Modules

Defined in:

m3u8/media_item.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(params : NamedTuple = NamedTuple.new) #

[View source]
def self.new(type : Nil | String = nil, group_id : Nil | String = nil, language : Nil | String = nil, assoc_language : Nil | String = nil, name : Nil | String = nil, uri : Nil | String = nil, autoselect : Bool | Nil = nil, default : Bool | Nil = nil, forced : Bool | Nil = nil, instream_id : Nil | String = nil, characteristics : Nil | String = nil, channels : Nil | String = nil) #

[View source]

Class Method Detail

def self.parse(text) #

[View source]

Instance Method Detail

def assoc_language : String | Nil #

[View source]
def assoc_language=(assoc_language : String | Nil) #

[View source]
def autoselect : Bool | Nil #

[View source]
def autoselect=(autoselect : Bool | Nil) #

[View source]
def channels : String | Nil #

[View source]
def channels=(channels : String | Nil) #

[View source]
def characteristics : String | Nil #

[View source]
def characteristics=(characteristics : String | Nil) #

[View source]
def default : Bool | Nil #

[View source]
def default=(default : Bool | Nil) #

[View source]
def forced : Bool | Nil #

[View source]
def forced=(forced : Bool | Nil) #

[View source]
def group_id : String | Nil #

[View source]
def group_id=(group_id : String | Nil) #

[View source]
def instream_id : String | Nil #

[View source]
def instream_id=(instream_id : String | Nil) #

[View source]
def language : String | Nil #

[View source]
def language=(language : String | Nil) #

[View source]
def name : String | Nil #

[View source]
def name=(name : String | Nil) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def type : String | Nil #

[View source]
def type=(type : String | Nil) #

[View source]
def uri : String | Nil #

[View source]
def uri=(uri : String | Nil) #

[View source]