OBS

C# Methods for OBS

ObsCreateRecordChapter

Creates OBS Chapter marker while recording

0.2.5
public bool ObsCreateRecordChapter(string chapterName, int connection = 0)

ObsHideFilter

Disable an OBS filter

public void ObsHideFilter(string scene, string source, string filterName, int connection = 0)
public void ObsHideFilter(string scene, string filterName, int connection = 0)

ObsHideScenesFilters

Disable all filters for a given scene

public void ObsHideScenesFilters(string scene, int connection = 0)

ObsHideSourcesFilters

Disable all filters for a given scene and source

public void ObsHideSourcesFilters(string scene, string source, int connection = 0)

ObsIsFilterEnabled

Check if a filter is enabled for a given scene/source

public bool ObsIsFilterEnabled(string scene, string source, string filterName, int connection = 0)
public bool ObsIsFilterEnabled(string scene, string filterName, int connection = 0)

ObsSetFilterState

Set the state of an OBS filter.
State => 0 = enable, 1 = disable, 2 = toggle

public void ObsSetFilterState(string scene, string source, string filterName, int state, int connection = 0)
public void ObsSetFilterState(string scene, string filterName, int state, int connection = 0)

ObsSetRandomFilterState

Set the state of a random OBS filter within a scene and/or source
State => 0 = enable, 1 = disable, 2 = toggle

public void ObsSetRandomFilterState(string scene, string source, int state, int connection = 0)
public void ObsSetRandomFilterState(string scene, int state, int connection = 0)

ObsShowFilter

Enable an OBS filter

public void ObsShowFilter(string scene, string source, string filterName, int connection = 0)
public void ObsShowFilter(string scene, string filterName, int connection = 0)

ObsToggleFilter

Toggle the state of an OBS filter

public void ObsToggleFilter(string scene, string source, string filterName, int connection = 0)
public void ObsToggleFilter(string scene, string filterName, int connection = 0)

ObsGetGroupSources

public List<string> ObsGetGroupSources(string scene, string groupName, int connection = 0)

ObsHideGroupsSources

public void ObsHideGroupsSources(string scene, string groupName, int connection = 0)

ObsSetRandomGroupSourceVisible

public string ObsSetRandomGroupSourceVisible(string scene, string groupName, int connection = 0)

ObsMediaNext

public void ObsMediaNext(string scene, string source, int connection = 0)

ObsMediaPause

public void ObsMediaPause(string scene, string source, int connection = 0)

ObsMediaPlay

public void ObsMediaPlay(string scene, string source, int connection = 0)

ObsMediaPrevious

public void ObsMediaPrevious(string scene, string source, int connection = 0)

ObsMediaRestart

public void ObsMediaRestart(string scene, string source, int connection = 0)

ObsMediaStop

public void ObsMediaStop(string scene, string source, int connection = 0)

ObsSetImageSourceFile

public void ObsSetImageSourceFile(string scene, string source, string file, int connection = 0)

ObsSetMediaSourceFile

public void ObsSetMediaSourceFile(string scene, string source, string file, int connection = 0)

ObsSetMediaState

public void ObsSetMediaState(string scene, string source, int state, int connection = 0)

ObsSendBatchRaw

public string ObsSendBatchRaw(string data, bool haltOnFailure = false, int executionType = 0, int connection = 0)

ObsSendRaw

public string ObsSendRaw(string requestType, string data, int connection = 0)

ObsIsRecording

public bool ObsIsRecording(int connection = 0)

ObsPauseRecording

public void ObsPauseRecording(int connection = 0)

ObsResumeRecording

public void ObsResumeRecording(int connection = 0)

ObsStartRecording

public void ObsStartRecording(int connection = 0)

ObsStopRecording

public void ObsStopRecording(int connection = 0)

ObsReplayBufferSave

public void ObsReplayBufferSave(int connection = 0)

ObsReplayBufferStart

public void ObsReplayBufferStart(int connection = 0)

ObsReplayBufferStop

public void ObsReplayBufferStop(int connection = 0)

ObsSetReplayBufferState

public void ObsSetReplayBufferState(int state, int connection = 0)

ObsGetCurrentScene

public string ObsGetCurrentScene(int connection = 0)

ObsGetSceneItemProperties

public string ObsGetSceneItemProperties(string scene, string source, int connection = 0)

ObsHideSceneSources

public void ObsHideSceneSources(string scene, int connection = 0)

ObsSetRandomSceneSourceVisible

public string ObsSetRandomSceneSourceVisible(string scene, int connection = 0)

ObsSetScene

public void ObsSetScene(string sceneName, int connection = 0)

ObsTakeScreenshot

public bool ObsTakeScreenshot(string source, string path, int quality = -1, int connection = 0)

ObsHideSource

public void ObsHideSource(string scene, string source, int connection = 0)

ObsIsSourceVisible

public bool ObsIsSourceVisible(string scene, string source, int connection = 0)

ObsSetBrowserSource

public void ObsSetBrowserSource(string scene, string source, string url, int connection = 0)

ObsSetColorSourceColor

public void ObsSetColorSourceColor(string scene, string source, string hexColor, int connection = 0)
public void ObsSetColorSourceColor(string scene, string source, int a, int r, int g, int b, int connection = 0)

ObsSetColorSourceRandomColor

public void ObsSetColorSourceRandomColor(string scene, string source, int connection = 0)

ObsSetGdiText

public void ObsSetGdiText(string scene, string source, string text, int connection = 0)

ObsSetSourceMuteState

public void ObsSetSourceMuteState(string scene, string source, int state, int connection = 0)

ObsSetSourceVisibility

public void ObsSetSourceVisibility(string scene, string source, bool visible, int connection = 0)

ObsSetSourceVisibilityState

public void ObsSetSourceVisibilityState(string scene, string source, int state, int connection = 0)

ObsShowSource

public void ObsShowSource(string scene, string source, int connection = 0)

ObsSourceMute

public void ObsSourceMute(string scene, string source, int connection = 0)

ObsSourceMuteToggle

public void ObsSourceMuteToggle(string scene, string source, int connection = 0)

ObsSourceUnMute

public void ObsSourceUnMute(string scene, string source, int connection = 0)

ObsIsStreaming

public bool ObsIsStreaming(int connection = 0)

ObsStartStreaming

public void ObsStartStreaming(int connection = 0)

ObsStopStreaming

public void ObsStopStreaming(int connection = 0)

ObsConnect

public bool ObsConnect(int connection = 0)

ObsConvertColorHex

public long ObsConvertColorHex(string colorHex)

ObsConvertRgb

public long ObsConvertRgb(int a, int r, int g, int b)

ObsDisconnect

public void ObsDisconnect(int connection = 0)

ObsGetConnectionByName

public int ObsGetConnectionByName(string name)

ObsIsConnected

public bool ObsIsConnected(int connection = 0)