struct
Obsctl::OBS::State::RecordStatus
- Obsctl::OBS::State::RecordStatus
- Struct
- Value
- Object
Overview
Full record output status from OBS GetRecordStatus.
Every field is nilable: older obs-websocket builds omit some of them, and the CLI renders a missing value as unknown rather than inventing one. Duration and bytes are only meaningful while recording is active.
Defined in:
obsctl/obs/state/record_status.crConstructors
Instance Method Summary
- #active : Bool | Nil
- #bytes : Int64 | Nil
- #clone
- #copy_with(active _active = @active, paused _paused = @paused, timecode _timecode = @timecode, duration_ms _duration_ms = @duration_ms, bytes _bytes = @bytes)
- #duration_ms : Int64 | Nil
- #paused : Bool | Nil
- #timecode : String | Nil
-
#to_json(json : JSON::Builder) : Nil
Writes the status as the JSON object used by the IPC result payload.
Constructor Detail
def self.new(active : Bool | Nil = nil, paused : Bool | Nil = nil, timecode : String | Nil = nil, duration_ms : Int64 | Nil = nil, bytes : Int64 | Nil = nil)
#
Instance Method Detail
def copy_with(active _active = @active, paused _paused = @paused, timecode _timecode = @timecode, duration_ms _duration_ms = @duration_ms, bytes _bytes = @bytes)
#
def to_json(json : JSON::Builder) : Nil
#
Writes the status as the JSON object used by the IPC result payload.