struct Obsctl::OBS::State::RecordStatus

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.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def active : Bool | Nil #

def bytes : Int64 | Nil #

def clone #

[View source]
def copy_with(active _active = @active, paused _paused = @paused, timecode _timecode = @timecode, duration_ms _duration_ms = @duration_ms, bytes _bytes = @bytes) #

[View source]
def duration_ms : Int64 | Nil #

def paused : Bool | Nil #

def timecode : String | Nil #

def to_json(json : JSON::Builder) : Nil #

Writes the status as the JSON object used by the IPC result payload.


[View source]