mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-15 18:50:47 +00:00
now using symbols when making api calls
in run, yield now passes a reference ot the client as an argument
This commit is contained in:
parent
17dcaa18d8
commit
153f35e742
280
lib/obsws/req.rb
280
lib/obsws/req.rb
@ -20,11 +20,11 @@ module OBSWS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
"#{self.class.name.split("::").last(2).join("::")}"
|
self.class.name.split("::").last(2).join("::")
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
yield
|
yield(self)
|
||||||
ensure
|
ensure
|
||||||
close
|
close
|
||||||
WaitUtil.wait_for_condition(
|
WaitUtil.wait_for_condition(
|
||||||
@ -63,34 +63,34 @@ module OBSWS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get_version
|
def get_version
|
||||||
resp = call("GetVersion")
|
resp = call(:GetVersion)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_stats
|
def get_stats
|
||||||
resp = call("GetStats")
|
resp = call(:GetStats)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def broadcast_custom_event(data)
|
def broadcast_custom_event(data)
|
||||||
call("BroadcastCustomEvent", data)
|
call(:BroadcastCustomEvent, data)
|
||||||
end
|
end
|
||||||
|
|
||||||
def call_vendor_request(name, type_, data = nil)
|
def call_vendor_request(vendor_name, request_type, data = nil)
|
||||||
payload = { vendorName: name, requestType: type_ }
|
payload = {vendorName: vendor_name, requestType: request_type}
|
||||||
payload[:requestData] = data if data
|
payload[:requestData] = data if data
|
||||||
resp = call("CallVendorRequest", payload)
|
resp = call(:CallVendorRequest, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_hotkey_list
|
def get_hotkey_list
|
||||||
resp = call("GetHotkeyList")
|
resp = call(:GetHotkeyList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def trigger_hotkey_by_name(name)
|
def trigger_hotkey_by_name(name)
|
||||||
payload = {hotkeyName: name}
|
payload = {hotkeyName: name}
|
||||||
call("TriggerHotkeyByName", payload)
|
call(:TriggerHotkeyByName, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def trigger_hotkey_by_key_sequence(
|
def trigger_hotkey_by_key_sequence(
|
||||||
@ -109,63 +109,63 @@ module OBSWS
|
|||||||
cmd: press_cmd
|
cmd: press_cmd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
call("TriggerHotkeyByKeySequence", payload)
|
call(:TriggerHotkeyByKeySequence, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def sleep(sleep_millis = nil, sleep_frames = nil)
|
def sleep(sleep_millis = nil, sleep_frames = nil)
|
||||||
payload = {sleepMillis: sleep_millis, sleepFrames: sleep_frames}
|
payload = {sleepMillis: sleep_millis, sleepFrames: sleep_frames}
|
||||||
call("Sleep", payload)
|
call(:Sleep, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_persistent_data(realm, slot_name)
|
def get_persistent_data(realm, slot_name)
|
||||||
payload = {realm: realm, slotName: slot_name}
|
payload = {realm: realm, slotName: slot_name}
|
||||||
resp = call("GetPersistentData", payload)
|
resp = call(:GetPersistentData, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_persistent_data(realm, slot_name, slot_value)
|
def set_persistent_data(realm, slot_name, slot_value)
|
||||||
payload = {realm: realm, slotName: slot_name, slotValue: slot_value}
|
payload = {realm: realm, slotName: slot_name, slotValue: slot_value}
|
||||||
call("SetPersistentData", payload)
|
call(:SetPersistentData, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_collection_list
|
def get_scene_collection_list
|
||||||
resp = call("GetSceneCollectionList")
|
resp = call(:GetSceneCollectionList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_current_scene_collection(name)
|
def set_current_scene_collection(name)
|
||||||
payload = {sceneCollectionName: name}
|
payload = {sceneCollectionName: name}
|
||||||
call("SetCurrentSceneCollection", payload)
|
call(:SetCurrentSceneCollection, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_scene_collection(name)
|
def create_scene_collection(name)
|
||||||
payload = {sceneCollectionName: name}
|
payload = {sceneCollectionName: name}
|
||||||
call("CreateSceneCollection", payload)
|
call(:CreateSceneCollection, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_profile_list
|
def get_profile_list
|
||||||
resp = call("GetProfileList")
|
resp = call(:GetProfileList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_current_profile(name)
|
def set_current_profile(name)
|
||||||
payload = {profileName: name}
|
payload = {profileName: name}
|
||||||
call("SetCurrentProfile", payload)
|
call(:SetCurrentProfile, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_profile(name)
|
def create_profile(name)
|
||||||
payload = {profileName: name}
|
payload = {profileName: name}
|
||||||
call("CreateProfile", payload)
|
call(:CreateProfile, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_profile(name)
|
def remove_profile(name)
|
||||||
payload = {profileName: name}
|
payload = {profileName: name}
|
||||||
call("RemoveProfile", payload)
|
call(:RemoveProfile, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_profile_parameter(category, name)
|
def get_profile_parameter(category, name)
|
||||||
payload = {parameterCategory: category, parameterName: name}
|
payload = {parameterCategory: category, parameterName: name}
|
||||||
resp = call("GetProfileParameter", payload)
|
resp = call(:GetProfileParameter, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -175,11 +175,11 @@ module OBSWS
|
|||||||
parameterName: name,
|
parameterName: name,
|
||||||
parameterValue: value
|
parameterValue: value
|
||||||
}
|
}
|
||||||
call("SetProfileParameter", payload)
|
call(:SetProfileParameter, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_video_settings
|
def get_video_settings
|
||||||
resp = call("GetVideoSettings")
|
resp = call(:GetVideoSettings)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -199,11 +199,11 @@ module OBSWS
|
|||||||
outputWidth: out_width,
|
outputWidth: out_width,
|
||||||
outputHeight: out_height
|
outputHeight: out_height
|
||||||
}
|
}
|
||||||
call("SetVideoSettings", payload)
|
call(:SetVideoSettings, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_stream_service_settings
|
def get_stream_service_settings
|
||||||
resp = call("GetStreamServiceSettings")
|
resp = call(:GetStreamServiceSettings)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -212,17 +212,17 @@ module OBSWS
|
|||||||
streamServiceType: ss_type,
|
streamServiceType: ss_type,
|
||||||
streamServiceSettings: ss_settings
|
streamServiceSettings: ss_settings
|
||||||
}
|
}
|
||||||
call("SetStreamServiceSettings", payload)
|
call(:SetStreamServiceSettings, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_record_directory
|
def get_record_directory
|
||||||
resp = call("GetRecordDirectory")
|
resp = call(:GetRecordDirectory)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_source_active(name)
|
def get_source_active(name)
|
||||||
payload = {sourceName: name}
|
payload = {sourceName: name}
|
||||||
resp = call("GetSourceActive", payload)
|
resp = call(:GetSourceActive, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ module OBSWS
|
|||||||
imageHeight: height,
|
imageHeight: height,
|
||||||
imageCompressionQuality: quality
|
imageCompressionQuality: quality
|
||||||
}
|
}
|
||||||
resp = call("GetSourceScreenshot", payload)
|
resp = call(:GetSourceScreenshot, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -254,58 +254,58 @@ module OBSWS
|
|||||||
imageHeight: height,
|
imageHeight: height,
|
||||||
imageCompressionQuality: quality
|
imageCompressionQuality: quality
|
||||||
}
|
}
|
||||||
resp = call("SaveSourceScreenshot", payload)
|
resp = call(:SaveSourceScreenshot, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_list
|
def get_scene_list
|
||||||
resp = call("GetSceneList")
|
resp = call(:GetSceneList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_group_list
|
def get_group_list
|
||||||
resp = call("GetGroupList")
|
resp = call(:GetGroupList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_current_program_scene
|
def get_current_program_scene
|
||||||
resp = call("GetCurrentProgramScene")
|
resp = call(:GetCurrentProgramScene)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_current_program_scene(name)
|
def set_current_program_scene(name)
|
||||||
payload = {sceneName: name}
|
payload = {sceneName: name}
|
||||||
call("SetCurrentProgramScene", payload)
|
call(:SetCurrentProgramScene, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_current_preview_scene
|
def get_current_preview_scene
|
||||||
resp = call("GetCurrentPreviewScene")
|
resp = call(:GetCurrentPreviewScene)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_current_preview_scene(name)
|
def set_current_preview_scene(name)
|
||||||
payload = {sceneName: name}
|
payload = {sceneName: name}
|
||||||
call("SetCurrentPreviewScene", payload)
|
call(:SetCurrentPreviewScene, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_scene(name)
|
def create_scene(name)
|
||||||
payload = {sceneName: name}
|
payload = {sceneName: name}
|
||||||
call("CreateScene", payload)
|
call(:CreateScene, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_scene(name)
|
def remove_scene(name)
|
||||||
payload = {sceneName: name}
|
payload = {sceneName: name}
|
||||||
call("RemoveScene", payload)
|
call(:RemoveScene, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_scene_name(old_name, new_name)
|
def set_scene_name(old_name, new_name)
|
||||||
payload = {sceneName: old_name, newSceneName: new_name}
|
payload = {sceneName: old_name, newSceneName: new_name}
|
||||||
call("SetSceneName", payload)
|
call(:SetSceneName, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_scene_transition_override(name)
|
def get_scene_scene_transition_override(name)
|
||||||
payload = {sceneName: name}
|
payload = {sceneName: name}
|
||||||
resp = call("GetSceneSceneTransitionOverride", payload)
|
resp = call(:GetSceneSceneTransitionOverride, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -315,23 +315,23 @@ module OBSWS
|
|||||||
transitionName: tr_name,
|
transitionName: tr_name,
|
||||||
transitionDuration: tr_duration
|
transitionDuration: tr_duration
|
||||||
}
|
}
|
||||||
call("SetSceneSceneTransitionOverride", payload)
|
call(:SetSceneSceneTransitionOverride, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_list(kind = nil)
|
def get_input_list(kind = nil)
|
||||||
payload = {inputKind: kind}
|
payload = {inputKind: kind}
|
||||||
resp = call("GetInputList", payload)
|
resp = call(:GetInputList, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_kind_list(unversioned)
|
def get_input_kind_list(unversioned)
|
||||||
payload = {unversioned: unversioned}
|
payload = {unversioned: unversioned}
|
||||||
resp = call("GetInputKindList", payload)
|
resp = call(:GetInputKindList, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_special_inputs
|
def get_special_inputs
|
||||||
resp = call("GetSpecialInputs")
|
resp = call(:GetSpecialInputs)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -349,57 +349,57 @@ module OBSWS
|
|||||||
inputSettings: input_settings,
|
inputSettings: input_settings,
|
||||||
sceneItemEnabled: scene_item_enabled
|
sceneItemEnabled: scene_item_enabled
|
||||||
}
|
}
|
||||||
resp = call("CreateInput", payload)
|
resp = call(:CreateInput, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_input(name)
|
def remove_input(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
call("RemoveInput", payload)
|
call(:RemoveInput, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_input_name(old_name, new_name)
|
def set_input_name(old_name, new_name)
|
||||||
payload = {inputName: old_name, newInputName: new_name}
|
payload = {inputName: old_name, newInputName: new_name}
|
||||||
call("SetInputName", payload)
|
call(:SetInputName, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_default_settings(kind)
|
def get_input_default_settings(kind)
|
||||||
payload = {inputKind: kind}
|
payload = {inputKind: kind}
|
||||||
resp = call("GetInputDefaultSettings", payload)
|
resp = call(:GetInputDefaultSettings, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_settings(name)
|
def get_input_settings(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetInputSettings", payload)
|
resp = call(:GetInputSettings, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_input_settings(name, settings, overlay)
|
def set_input_settings(name, settings, overlay)
|
||||||
payload = {inputName: name, inputSettings: settings, overlay: overlay}
|
payload = {inputName: name, inputSettings: settings, overlay: overlay}
|
||||||
call("SetInputSettings", payload)
|
call(:SetInputSettings, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_mute(name)
|
def get_input_mute(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetInputMute", payload)
|
resp = call(:GetInputMute, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_input_mute(name, muted)
|
def set_input_mute(name, muted)
|
||||||
payload = {inputName: name, inputMuted: muted}
|
payload = {inputName: name, inputMuted: muted}
|
||||||
call("SetInputMute", payload)
|
call(:SetInputMute, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle_input_mute(name)
|
def toggle_input_mute(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("ToggleInputMute", payload)
|
resp = call(:ToggleInputMute, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_volume(name)
|
def get_input_volume(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetInputVolume", payload)
|
resp = call(:GetInputVolume, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -409,117 +409,117 @@ module OBSWS
|
|||||||
inputVolumeMul: vol_mul,
|
inputVolumeMul: vol_mul,
|
||||||
inputVolumeDb: vol_db
|
inputVolumeDb: vol_db
|
||||||
}
|
}
|
||||||
call("SetInputVolume", payload)
|
call(:SetInputVolume, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_audio_balance(name)
|
def get_input_audio_balance(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetInputAudioBalance", payload)
|
resp = call(:GetInputAudioBalance, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_input_audio_balance(name, balance)
|
def set_input_audio_balance(name, balance)
|
||||||
payload = {inputName: name, inputAudioBalance: balance}
|
payload = {inputName: name, inputAudioBalance: balance}
|
||||||
call("SetInputAudioBalance", payload)
|
call(:SetInputAudioBalance, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_audio_sync_offset(name)
|
def get_input_audio_sync_offset(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetInputAudioSyncOffset", payload)
|
resp = call(:GetInputAudioSyncOffset, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_input_audio_sync_offset(name, offset)
|
def set_input_audio_sync_offset(name, offset)
|
||||||
payload = {inputName: name, inputAudioSyncOffset: offset}
|
payload = {inputName: name, inputAudioSyncOffset: offset}
|
||||||
call("SetInputAudioSyncOffset", payload)
|
call(:SetInputAudioSyncOffset, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_audio_monitor_type(name)
|
def get_input_audio_monitor_type(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetInputAudioMonitorType", payload)
|
resp = call(:GetInputAudioMonitorType, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_input_audio_monitor_type(name, mon_type)
|
def set_input_audio_monitor_type(name, mon_type)
|
||||||
payload = {inputName: name, monitorType: mon_type}
|
payload = {inputName: name, monitorType: mon_type}
|
||||||
call("SetInputAudioMonitorType", payload)
|
call(:SetInputAudioMonitorType, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_audio_tracks(name)
|
def get_input_audio_tracks(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetInputAudioTracks", payload)
|
resp = call(:GetInputAudioTracks, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_input_audio_tracks(name, track)
|
def set_input_audio_tracks(name, track)
|
||||||
payload = {inputName: name, inputAudioTracks: track}
|
payload = {inputName: name, inputAudioTracks: track}
|
||||||
call("SetInputAudioTracks", payload)
|
call(:SetInputAudioTracks, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_input_properties_list_property_items(input_name, prop_name)
|
def get_input_properties_list_property_items(input_name, prop_name)
|
||||||
payload = {inputName: input_name, propertyName: prop_name}
|
payload = {inputName: input_name, propertyName: prop_name}
|
||||||
resp = call("GetInputPropertiesListPropertyItems", payload)
|
resp = call(:GetInputPropertiesListPropertyItems, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def press_input_properties_button(input_name, prop_name)
|
def press_input_properties_button(input_name, prop_name)
|
||||||
payload = {inputName: input_name, propertyName: prop_name}
|
payload = {inputName: input_name, propertyName: prop_name}
|
||||||
call("PressInputPropertiesButton", payload)
|
call(:PressInputPropertiesButton, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_transition_kind_list
|
def get_transition_kind_list
|
||||||
resp = call("GetTransitionKindList")
|
resp = call(:GetTransitionKindList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_transition_list
|
def get_scene_transition_list
|
||||||
resp = call("GetSceneTransitionList")
|
resp = call(:GetSceneTransitionList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_current_scene_transition
|
def get_current_scene_transition
|
||||||
resp = call("GetCurrentSceneTransition")
|
resp = call(:GetCurrentSceneTransition)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_current_scene_transition(name)
|
def set_current_scene_transition(name)
|
||||||
payload = {transitionName: name}
|
payload = {transitionName: name}
|
||||||
call("SetCurrentSceneTransition", payload)
|
call(:SetCurrentSceneTransition, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_current_scene_transition_duration(duration)
|
def set_current_scene_transition_duration(duration)
|
||||||
payload = {transitionDuration: duration}
|
payload = {transitionDuration: duration}
|
||||||
call("SetCurrentSceneTransitionDuration", payload)
|
call(:SetCurrentSceneTransitionDuration, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_current_scene_transition_settings(settings, overlay = nil)
|
def set_current_scene_transition_settings(settings, overlay = nil)
|
||||||
payload = {transitionSettings: settings, overlay: overlay}
|
payload = {transitionSettings: settings, overlay: overlay}
|
||||||
call("SetCurrentSceneTransitionSettings", payload)
|
call(:SetCurrentSceneTransitionSettings, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_current_scene_transition_cursor
|
def get_current_scene_transition_cursor
|
||||||
resp = call("GetCurrentSceneTransitionCursor")
|
resp = call(:GetCurrentSceneTransitionCursor)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def trigger_studio_mode_transition
|
def trigger_studio_mode_transition
|
||||||
call("TriggerStudioModeTransition")
|
call(:TriggerStudioModeTransition)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_t_bar_position(pos, release = nil)
|
def set_t_bar_position(pos, release = nil)
|
||||||
payload = {position: pos, release: release}
|
payload = {position: pos, release: release}
|
||||||
call("SetTBarPosition", payload)
|
call(:SetTBarPosition, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_source_filter_list(name)
|
def get_source_filter_list(name)
|
||||||
payload = {sourceName: name}
|
payload = {sourceName: name}
|
||||||
resp = call("GetSourceFilterList", payload)
|
resp = call(:GetSourceFilterList, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_source_filter_default_settings(kind)
|
def get_source_filter_default_settings(kind)
|
||||||
payload = {filterKind: kind}
|
payload = {filterKind: kind}
|
||||||
resp = call("GetSourceFilterDefaultSettings", payload)
|
resp = call(:GetSourceFilterDefaultSettings, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -535,12 +535,12 @@ module OBSWS
|
|||||||
filterKind: filter_kind,
|
filterKind: filter_kind,
|
||||||
filterSettings: filter_settings
|
filterSettings: filter_settings
|
||||||
}
|
}
|
||||||
call("CreateSourceFilter", payload)
|
call(:CreateSourceFilter, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_source_filter(source_name, filter_name)
|
def remove_source_filter(source_name, filter_name)
|
||||||
payload = {sourceName: source_name, filterName: filter_name}
|
payload = {sourceName: source_name, filterName: filter_name}
|
||||||
call("RemoveSourceFilter", payload)
|
call(:RemoveSourceFilter, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_source_filter_name(source_name, old_filter_name, new_filter_name)
|
def set_source_filter_name(source_name, old_filter_name, new_filter_name)
|
||||||
@ -549,12 +549,12 @@ module OBSWS
|
|||||||
filterName: old_filter_name,
|
filterName: old_filter_name,
|
||||||
newFilterName: new_filter_name
|
newFilterName: new_filter_name
|
||||||
}
|
}
|
||||||
call("SetSourceFilterName", payload)
|
call(:SetSourceFilterName, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_source_filter(source_name, filter_name)
|
def get_source_filter(source_name, filter_name)
|
||||||
payload = {sourceName: source_name, filterName: filter_name}
|
payload = {sourceName: source_name, filterName: filter_name}
|
||||||
resp = call("GetSourceFilter", payload)
|
resp = call(:GetSourceFilter, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -564,7 +564,7 @@ module OBSWS
|
|||||||
filterName: filter_name,
|
filterName: filter_name,
|
||||||
filterIndex: filter_index
|
filterIndex: filter_index
|
||||||
}
|
}
|
||||||
call("SetSourceFilterIndex", payload)
|
call(:SetSourceFilterIndex, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_source_filter_settings(
|
def set_source_filter_settings(
|
||||||
@ -579,7 +579,7 @@ module OBSWS
|
|||||||
filterSettings: settings,
|
filterSettings: settings,
|
||||||
overlay: overlay
|
overlay: overlay
|
||||||
}
|
}
|
||||||
call("SetSourceFilterSettings", payload)
|
call(:SetSourceFilterSettings, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_source_filter_enabled(source_name, filter_name, enabled)
|
def set_source_filter_enabled(source_name, filter_name, enabled)
|
||||||
@ -588,18 +588,18 @@ module OBSWS
|
|||||||
filterName: filter_name,
|
filterName: filter_name,
|
||||||
filterEnabled: enabled
|
filterEnabled: enabled
|
||||||
}
|
}
|
||||||
call("SetSourceFilterEnabled", payload)
|
call(:SetSourceFilterEnabled, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_item_list(name)
|
def get_scene_item_list(name)
|
||||||
payload = {sceneName: name}
|
payload = {sceneName: name}
|
||||||
resp = call("GetSceneItemList", payload)
|
resp = call(:GetSceneItemList, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_group_scene_item_list(name)
|
def get_group_scene_item_list(name)
|
||||||
payload = {sceneName: name}
|
payload = {sceneName: name}
|
||||||
resp = call("GetGroupSceneItemList", payload)
|
resp = call(:GetGroupSceneItemList, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -609,7 +609,7 @@ module OBSWS
|
|||||||
sourceName: source_name,
|
sourceName: source_name,
|
||||||
searchOffset: offset
|
searchOffset: offset
|
||||||
}
|
}
|
||||||
resp = call("GetSceneItemId", payload)
|
resp = call(:GetSceneItemId, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -619,13 +619,13 @@ module OBSWS
|
|||||||
sourceName: source_name,
|
sourceName: source_name,
|
||||||
sceneItemEnabled: enabled
|
sceneItemEnabled: enabled
|
||||||
}
|
}
|
||||||
resp = call("CreateSceneItem", payload)
|
resp = call(:CreateSceneItem, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_scene_item(scene_name, item_id)
|
def remove_scene_item(scene_name, item_id)
|
||||||
payload = {sceneName: scene_name, sceneItemId: item_id}
|
payload = {sceneName: scene_name, sceneItemId: item_id}
|
||||||
call("RemoveSceneItem", payload)
|
call(:RemoveSceneItem, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def duplicate_scene_item(scene_name, item_id, dest_scene_name = nil)
|
def duplicate_scene_item(scene_name, item_id, dest_scene_name = nil)
|
||||||
@ -634,13 +634,13 @@ module OBSWS
|
|||||||
sceneItemId: item_id,
|
sceneItemId: item_id,
|
||||||
destinationSceneName: dest_scene_name
|
destinationSceneName: dest_scene_name
|
||||||
}
|
}
|
||||||
resp = call("DuplicateSceneItem", payload)
|
resp = call(:DuplicateSceneItem, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_item_transform(scene_name, item_id)
|
def get_scene_item_transform(scene_name, item_id)
|
||||||
payload = {sceneName: scene_name, sceneItemId: item_id}
|
payload = {sceneName: scene_name, sceneItemId: item_id}
|
||||||
resp = call("GetSceneItemTransform", payload)
|
resp = call(:GetSceneItemTransform, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -650,12 +650,12 @@ module OBSWS
|
|||||||
sceneItemId: item_id,
|
sceneItemId: item_id,
|
||||||
sceneItemTransform: transform
|
sceneItemTransform: transform
|
||||||
}
|
}
|
||||||
call("SetSceneItemTransform", payload)
|
call(:SetSceneItemTransform, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_item_enabled(scene_name, item_id)
|
def get_scene_item_enabled(scene_name, item_id)
|
||||||
payload = {sceneName: scene_name, sceneItemId: item_id}
|
payload = {sceneName: scene_name, sceneItemId: item_id}
|
||||||
resp = call("GetSceneItemEnabled", payload)
|
resp = call(:GetSceneItemEnabled, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -665,12 +665,12 @@ module OBSWS
|
|||||||
sceneItemId: item_id,
|
sceneItemId: item_id,
|
||||||
sceneItemEnabled: enabled
|
sceneItemEnabled: enabled
|
||||||
}
|
}
|
||||||
call("SetSceneItemEnabled", payload)
|
call(:SetSceneItemEnabled, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_item_locked(scene_name, item_id)
|
def get_scene_item_locked(scene_name, item_id)
|
||||||
payload = {sceneName: scene_name, sceneItemId: item_id}
|
payload = {sceneName: scene_name, sceneItemId: item_id}
|
||||||
resp = call("GetSceneItemLocked", payload)
|
resp = call(:GetSceneItemLocked, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -680,12 +680,12 @@ module OBSWS
|
|||||||
sceneItemId: item_id,
|
sceneItemId: item_id,
|
||||||
sceneItemLocked: locked
|
sceneItemLocked: locked
|
||||||
}
|
}
|
||||||
call("SetSceneItemLocked", payload)
|
call(:SetSceneItemLocked, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_item_index(scene_name, item_id)
|
def get_scene_item_index(scene_name, item_id)
|
||||||
payload = {sceneName: scene_name, sceneItemId: item_id}
|
payload = {sceneName: scene_name, sceneItemId: item_id}
|
||||||
resp = call("GetSceneItemIndex", payload)
|
resp = call(:GetSceneItemIndex, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -693,14 +693,14 @@ module OBSWS
|
|||||||
payload = {
|
payload = {
|
||||||
sceneName: scene_name,
|
sceneName: scene_name,
|
||||||
sceneItemId: item_id,
|
sceneItemId: item_id,
|
||||||
sceneItemLocked: item_index
|
sceneItemIndex: item_index
|
||||||
}
|
}
|
||||||
call("SetSceneItemIndex", payload)
|
call(:SetSceneItemIndex, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_scene_item_blend_mode(scene_name, item_id)
|
def get_scene_item_blend_mode(scene_name, item_id)
|
||||||
payload = {sceneName: scene_name, sceneItemId: item_id}
|
payload = {sceneName: scene_name, sceneItemId: item_id}
|
||||||
resp = call("GetSceneItemBlendMode", payload)
|
resp = call(:GetSceneItemBlendMode, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -710,192 +710,192 @@ module OBSWS
|
|||||||
sceneItemId: item_id,
|
sceneItemId: item_id,
|
||||||
sceneItemBlendMode: blend
|
sceneItemBlendMode: blend
|
||||||
}
|
}
|
||||||
call("SetSceneItemBlendMode", payload)
|
call(:SetSceneItemBlendMode, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_virtual_cam_status
|
def get_virtual_cam_status
|
||||||
resp = call("GetVirtualCamStatus")
|
resp = call(:GetVirtualCamStatus)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle_virtual_cam
|
def toggle_virtual_cam
|
||||||
resp = call("ToggleVirtualCam")
|
resp = call(:ToggleVirtualCam)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_virtual_cam
|
def start_virtual_cam
|
||||||
call("StartVirtualCam")
|
call(:StartVirtualCam)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_virtual_cam
|
def stop_virtual_cam
|
||||||
call("StopVirtualCam")
|
call(:StopVirtualCam)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_replay_buffer_status
|
def get_replay_buffer_status
|
||||||
resp = call("GetReplayBufferStatus")
|
resp = call(:GetReplayBufferStatus)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle_replay_buffer
|
def toggle_replay_buffer
|
||||||
resp = call("ToggleReplayBuffer")
|
resp = call(:ToggleReplayBuffer)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_replay_buffer
|
def start_replay_buffer
|
||||||
call("StartReplayBuffer")
|
call(:StartReplayBuffer)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_replay_buffer
|
def stop_replay_buffer
|
||||||
call("StopReplayBuffer")
|
call(:StopReplayBuffer)
|
||||||
end
|
end
|
||||||
|
|
||||||
def save_replay_buffer
|
def save_replay_buffer
|
||||||
call("SaveReplayBuffer")
|
call(:SaveReplayBuffer)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_last_replay_buffer_replay
|
def get_last_replay_buffer_replay
|
||||||
resp = call("GetLastReplayBufferReplay")
|
resp = call(:GetLastReplayBufferReplay)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_output_list
|
def get_output_list
|
||||||
resp = call("GetOutputList")
|
resp = call(:GetOutputList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_output_status(name)
|
def get_output_status(name)
|
||||||
payload = {outputName: name}
|
payload = {outputName: name}
|
||||||
resp = call("GetOutputStatus", payload)
|
resp = call(:GetOutputStatus, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle_output(name)
|
def toggle_output(name)
|
||||||
payload = {outputName: name}
|
payload = {outputName: name}
|
||||||
resp = call("ToggleOutput", payload)
|
resp = call(:ToggleOutput, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_output(name)
|
def start_output(name)
|
||||||
payload = {outputName: name}
|
payload = {outputName: name}
|
||||||
call("StartOutput", payload)
|
call(:StartOutput, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_output(name)
|
def stop_output(name)
|
||||||
payload = {outputName: name}
|
payload = {outputName: name}
|
||||||
call("StopOutput", payload)
|
call(:StopOutput, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_output_settings(name)
|
def get_output_settings(name)
|
||||||
payload = {outputName: name}
|
payload = {outputName: name}
|
||||||
resp = call("GetOutputSettings", payload)
|
resp = call(:GetOutputSettings, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_output_settings(name, settings)
|
def set_output_settings(name, settings)
|
||||||
payload = {outputName: name, outputSettings: settings}
|
payload = {outputName: name, outputSettings: settings}
|
||||||
call("SetOutputSettings", payload)
|
call(:SetOutputSettings, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_stream_status
|
def get_stream_status
|
||||||
resp = call("GetStreamStatus")
|
resp = call(:GetStreamStatus)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle_stream
|
def toggle_stream
|
||||||
resp = call("ToggleStream")
|
resp = call(:ToggleStream)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_stream
|
def start_stream
|
||||||
call("StartStream")
|
call(:StartStream)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_stream
|
def stop_stream
|
||||||
call("StopStream")
|
call(:StopStream)
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_stream_caption(caption)
|
def send_stream_caption(caption)
|
||||||
call("SendStreamCaption")
|
call(:SendStreamCaption)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_record_status
|
def get_record_status
|
||||||
resp = call("GetRecordStatus")
|
resp = call(:GetRecordStatus)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle_record
|
def toggle_record
|
||||||
call("ToggleRecord")
|
call(:ToggleRecord)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_record
|
def start_record
|
||||||
call("StartRecord")
|
call(:StartRecord)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_record
|
def stop_record
|
||||||
resp = call("StopRecord")
|
resp = call(:StopRecord)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle_record_pause
|
def toggle_record_pause
|
||||||
call("ToggleRecordPause")
|
call(:ToggleRecordPause)
|
||||||
end
|
end
|
||||||
|
|
||||||
def pause_record
|
def pause_record
|
||||||
call("PauseRecord")
|
call(:PauseRecord)
|
||||||
end
|
end
|
||||||
|
|
||||||
def resume_record
|
def resume_record
|
||||||
call("ResumeRecord")
|
call(:ResumeRecord)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_media_input_status(name)
|
def get_media_input_status(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
resp = call("GetMediaInputStatus", payload)
|
resp = call(:GetMediaInputStatus, payload)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_media_input_cursor(name, cursor)
|
def set_media_input_cursor(name, cursor)
|
||||||
payload = {inputName: name, mediaCursor: cursor}
|
payload = {inputName: name, mediaCursor: cursor}
|
||||||
call("SetMediaInputCursor", payload)
|
call(:SetMediaInputCursor, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def offset_media_input_cursor(name, offset)
|
def offset_media_input_cursor(name, offset)
|
||||||
payload = {inputName: name, mediaCursorOffset: offset}
|
payload = {inputName: name, mediaCursorOffset: offset}
|
||||||
call("OffsetMediaInputCursor", payload)
|
call(:OffsetMediaInputCursor, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def trigger_media_input_action(name, action)
|
def trigger_media_input_action(name, action)
|
||||||
payload = {inputName: name, mediaAction: action}
|
payload = {inputName: name, mediaAction: action}
|
||||||
call("TriggerMediaInputAction", payload)
|
call(:TriggerMediaInputAction, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_studio_mode_enabled
|
def get_studio_mode_enabled
|
||||||
resp = call("GetStudioModeEnabled")
|
resp = call(:GetStudioModeEnabled)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_studio_mode_enabled(enabled)
|
def set_studio_mode_enabled(enabled)
|
||||||
payload = {studioModeEnabled: enabled}
|
payload = {studioModeEnabled: enabled}
|
||||||
call("SetStudioModeEnabled", payload)
|
call(:SetStudioModeEnabled, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def open_input_properties_dialog(name)
|
def open_input_properties_dialog(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
call("OpenInputPropertiesDialog", payload)
|
call(:OpenInputPropertiesDialog, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def open_input_filters_dialog(name)
|
def open_input_filters_dialog(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
call("OpenInputFiltersDialog", payload)
|
call(:OpenInputFiltersDialog, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def open_input_interact_dialog(name)
|
def open_input_interact_dialog(name)
|
||||||
payload = {inputName: name}
|
payload = {inputName: name}
|
||||||
call("OpenInputInteractDialog", payload)
|
call(:OpenInputInteractDialog, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_monitor_list
|
def get_monitor_list
|
||||||
resp = call("GetMonitorList")
|
resp = call(:GetMonitorList)
|
||||||
Mixin::Response.new(resp, resp.keys)
|
Mixin::Response.new(resp, resp.keys)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user