Class: M3u8::Scte35TimeSignal
- Inherits:
-
Object
- Object
- M3u8::Scte35TimeSignal
- Defined in:
- lib/m3u8/scte35_time_signal.rb
Overview
Represents a time_signal SCTE-35 command (type 0x06)
Instance Attribute Summary collapse
-
#pts_time ⇒ Object
readonly
Returns the value of attribute pts_time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Scte35TimeSignal
constructor
A new instance of Scte35TimeSignal.
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( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#pts_time ⇒ Object (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 |