class M3U8::SessionKeyItem
- M3U8::SessionKeyItem
- Reference
- Object
Overview
KeyItem represents a set of EXT-X-SESSION-KEY attributes https://tools.ietf.org/html/draft-pantos-http-live-streaming-20#page-33
Included Modules
- M3U8::Concern
- M3U8::Encryptable
Extended Modules
- M3U8::Concern
Defined in:
m3u8/session_key_item.crClass Method Summary
-
.parse(text)
text = %(#EXT-X-SESSION-KEY:METHOD=AES-128,URI="http://test.key",IV=D512BBF,KEYFORMAT="identity",KEYFORMATVERSIONS="1/3") SessionKeyItem.parse(text) # => #<M3U8::SessionKeyItem......>
Instance Method Summary
-
#to_s
options = { method: "AES-128", uri: "http://test.key", iv: "D512BBF", key_format: "identity", key_format_versions: "1/3", } SessionKeyItem.new(options).to_s # => %(#EXT-X-SESSION-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-SESSION-KEY:METHOD=AES-128,URI="http://test.key",IV=D512BBF,KEYFORMAT="identity",KEYFORMATVERSIONS="1/3")
SessionKeyItem.parse(text)
# => #<M3U8::SessionKeyItem......>
Instance Method Detail
def to_s
#
options = {
method: "AES-128",
uri: "http://test.key",
iv: "D512BBF",
key_format: "identity",
key_format_versions: "1/3",
}
SessionKeyItem.new(options).to_s
# => %(#EXT-X-SESSION-KEY:METHOD=AES-128,URI="http://test.key",IV=D512BBF,KEYFORMAT="identity",KEYFORMATVERSIONS="1/3")