struct Obsctl::OBS::State::ObsSnapshot

Overview

Authoritative OBS state snapshot distributed by the local server.

Defined in:

obsctl/obs/state/obs_snapshot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(connected : Bool, obs_studio_version : String | Nil, obs_websocket_version : String | Nil, current_scene : String | Nil, scenes : Array(SceneState), audio_inputs : Array(AudioState), output : OutputState = OutputState.new, profiles : Array(String) = [] of String, current_profile : String | Nil = nil, scene_collections : Array(String) = [] of String, current_scene_collection : String | Nil = nil, stats : ObsStats | Nil = nil, stream_bitrate_kbps : Float64 | Nil = nil, stream_duration_ms : Int64 | Nil = nil, record_duration_ms : Int64 | Nil = nil, last_error : String | Nil = nil, updated_at : Time = Time.utc) #

[View source]

Instance Method Detail

def audio_inputs : Array(AudioState) #

def clone #

[View source]
def connected : Bool #

def copy_with(connected _connected = @connected, obs_studio_version _obs_studio_version = @obs_studio_version, obs_websocket_version _obs_websocket_version = @obs_websocket_version, current_scene _current_scene = @current_scene, scenes _scenes = @scenes, audio_inputs _audio_inputs = @audio_inputs, output _output = @output, profiles _profiles = @profiles, current_profile _current_profile = @current_profile, scene_collections _scene_collections = @scene_collections, current_scene_collection _current_scene_collection = @current_scene_collection, stats _stats = @stats, stream_bitrate_kbps _stream_bitrate_kbps = @stream_bitrate_kbps, stream_duration_ms _stream_duration_ms = @stream_duration_ms, record_duration_ms _record_duration_ms = @record_duration_ms, last_error _last_error = @last_error, updated_at _updated_at = @updated_at) #

[View source]
def current_profile : String | Nil #

def current_scene : String | Nil #

def current_scene_collection : String | Nil #

def last_error : String | Nil #

def obs_studio_version : String | Nil #

def obs_websocket_version : String | Nil #

def output : OutputState #

def profiles : Array(String) #

def record_duration_ms : Int64 | Nil #

def scene_collections : Array(String) #

def scenes : Array(SceneState) #

def stats : ObsStats | Nil #

def stream_bitrate_kbps : Float64 | Nil #

def stream_duration_ms : Int64 | Nil #

def updated_at : Time #