Class: M3u8::Scte35TimeSignal

Inherits:
Object
  • Object
show all
Defined in:
lib/m3u8/scte35_time_signal.rb

Overview

Represents a time_signal SCTE-35 command (type 0x06)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Scte35TimeSignal

Returns a new instance of Scte35TimeSignal.



8
9
10
11
12
# File 'lib/m3u8/scte35_time_signal.rb', line 8

def initialize(options = {})
  options.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
end

Instance Attribute Details

#pts_timeObject (readonly)

Returns the value of attribute pts_time.



6
7
8
# File 'lib/m3u8/scte35_time_signal.rb', line 6

def pts_time
  @pts_time
end

Class Method Details

.parse_from(reader, _length) ⇒ Object



14
15
16
17
# File 'lib/m3u8/scte35_time_signal.rb', line 14

def self.parse_from(reader, _length)
  pts_time = Scte35.parse_splice_time(reader)
  new(pts_time: pts_time)
end