class M3U8::PlaybackStart
- M3U8::PlaybackStart
- Reference
- Object
Overview
PlaybackStart represents a #EXT-X-START tag and attributes
Included Modules
- M3U8::Concern
Extended Modules
- M3U8::Concern
Defined in:
m3u8/playback_start.crConstructors
-
.new(params : NamedTuple = NamedTuple.new)
options = { time_offset: -12.9, precise: true, } PlaybackStart.new(options)
-
.new(time_offset, precise : Bool | Nil = nil)
time_offset = -12.9 precise = true PlaybackStart.new(time_offset) PlaybackStart.new(time_offset, precise)
Class Method Summary
-
.parse(text)
text = "#EXT-X-START:TIME-OFFSET=-12.9,PRECISE=YES" PlaybackStart.parse(text) # => #<M3U8::PlaybackStart......>
Instance Method Summary
- #precise : Bool | Nil
- #precise=(precise : Bool | Nil)
- #time_offset : Float64
- #time_offset=(time_offset : Float64)
-
#to_s
options = { time_offset: -12.9, precise: true, } PlaybackStart.new(options).to_s # => "#EXT-X-START:TIME-OFFSET=-12.9,PRECISE=YES"
Constructor Detail
def self.new(params : NamedTuple = NamedTuple.new)
#
options = {
time_offset: -12.9,
precise: true,
}
PlaybackStart.new(options)
def self.new(time_offset, precise : Bool | Nil = nil)
#
time_offset = -12.9
precise = true
PlaybackStart.new(time_offset)
PlaybackStart.new(time_offset, precise)
Class Method Detail
def self.parse(text)
#
text = "#EXT-X-START:TIME-OFFSET=-12.9,PRECISE=YES"
PlaybackStart.parse(text)
# => #<M3U8::PlaybackStart......>
Instance Method Detail
def to_s
#
options = {
time_offset: -12.9,
precise: true,
}
PlaybackStart.new(options).to_s
# => "#EXT-X-START:TIME-OFFSET=-12.9,PRECISE=YES"