class M3U8::KeyItem
- M3U8::KeyItem
- Reference
- Object
Overview
KeyItem represents a set of EXT-X-KEY attributes
Included Modules
- M3U8::Concern
- M3U8::Encryptable
Extended Modules
- M3U8::Concern
Defined in:
m3u8/key_item.crClass Method Summary
-
.parse(text)
text = %(#EXT-X-KEY:METHOD=AES-128,URI="http://test.key",IV=D512BBF,KEYFORMAT="identity",KEYFORMATVERSIONS="1/3") KeyItem.parse(text) # => #<M3U8::KeyItem......>
Instance Method Summary
-
#to_s
options = { method: "AES-128", uri: "http://test.key", iv: "D512BBF", key_format: "identity", key_format_versions: "1/3", } KeyItem.new(options).to_s # => %(#EXT-X-KEY:METHOD=AES-128,URI="http://test.key",IV=D512BBF,KEYFORMAT="identity",KEYFORMATVERSIONS="1/3")
Instance methods inherited from module M3U8::Encryptable
attributes_to_s
attributes_to_s,
iv : String | Nil
iv,
iv=(iv : String | Nil)
iv=,
key_format : String | Nil
key_format,
key_format=(key_format : String | Nil)
key_format=,
key_format_versions : String | Nil
key_format_versions,
key_format_versions=(key_format_versions : String | Nil)
key_format_versions=,
method : String
method,
method=(method : String)
method=,
uri : String | Nil
uri,
uri=(uri : String | Nil)
uri=
Constructor methods inherited from module M3U8::Encryptable
new(params : NamedTuple = NamedTuple.new)new(method = "", uri = nil, iv = nil, key_format = nil, key_format_versions = nil) new
Class methods inherited from module M3U8::Encryptable
convert_key(params)
convert_key
Class Method Detail
def self.parse(text)
#
text = %(#EXT-X-KEY:METHOD=AES-128,URI="http://test.key",IV=D512BBF,KEYFORMAT="identity",KEYFORMATVERSIONS="1/3")
KeyItem.parse(text)
# => #<M3U8::KeyItem......>
Instance Method Detail
def to_s
#
options = {
method: "AES-128",
uri: "http://test.key",
iv: "D512BBF",
key_format: "identity",
key_format_versions: "1/3",
}
KeyItem.new(options).to_s
# => %(#EXT-X-KEY:METHOD=AES-128,URI="http://test.key",IV=D512BBF,KEYFORMAT="identity",KEYFORMATVERSIONS="1/3")