OBS
Index
Constructors
Properties
Methods
Constructors
constructor
Returns OBS
Properties
inputs
scenes
All of the scenes that this OBS instance has access to
socket
The OBS websocket connection used internally
streaming
Streaming state
Methods
call
Type parameters
- T: keyof OBSRequestTypesOverrides | GetPersistentData | SetPersistentData | GetSceneCollectionList | SetCurrentSceneCollection | CreateSceneCollection | GetProfileList | SetCurrentProfile | CreateProfile | RemoveProfile | GetProfileParameter | SetProfileParameter | GetVideoSettings | SetVideoSettings | GetStreamServiceSettings | SetStreamServiceSettings | GetVersion | GetStats | BroadcastCustomEvent | CallVendorRequest | GetHotkeyList | TriggerHotkeyByName | TriggerHotkeyByKeySequence | Sleep | GetInputList | GetInputKindList | CreateInput | RemoveInput | SetInputName | GetInputDefaultSettings | GetInputSettings | SetInputSettings | GetInputMute | SetInputMute | ToggleInputMute | GetInputVolume | SetInputVolume | GetInputAudioSyncOffset | SetInputAudioSyncOffset | GetInputAudioMonitorType | GetInputPropertiesListPropertyItems | PressInputPropertiesButton | GetMediaInputStatus | SetMediaInputCursor | OffsetMediaInputCursor | TriggerMediaInputAction | GetRecordStatus | ToggleRecord | StartRecord | StopRecord | ToggleRecordPause | PauseRecord | ResumeRecord | GetRecordDirectory | GetSceneItemList | GetGroupItemList | GetSceneItemId | CreateSceneItem | RemoveSceneItem | DuplicateSceneItem | GetSceneItemTransform | GetSceneItemEnabled | SetSceneItemEnabled | GetSceneItemLocked | SetSceneItemLocked | GetSceneItemIndex | SetSceneItemIndex | GetSceneList | GetCurrentProgramScene | SetCurrentProgramScene | GetCurrentPreviewScene | SetCurrentPreviewScene | CreateScene | RemoveScene | SetSceneName | GetSourceActive | GetSourceScreenshot | SaveSourceScreenshot | GetStreamStatus | ToggleStream | StartStream | StopStream | GetTransitionKindList | GetSceneTransitionList | GetCurrentSceneTransition | SetCurrentSceneTransition | SetCurrentSceneTransitionDuration | SetCurrentSceneTransitionSettings | TriggerStudioModeTransition | GetStudioModeEnabled | SetStudioModeEnabled
Parameters
requestType: T
optionalrequestData: Omit<OBSRequestTypes, keyof OBSRequestTypesOverrides> & OBSRequestTypesOverrides[T]
Returns Promise<Omit<OBSResponseTypes, keyof OBSResponseTypesOverrides> & OBSResponseTypesOverrides[T]>
clean
Goes though each source in OBS and removes it if Sceneify owns it, and there are no references to the source in code.
Returns Promise<void>
connect
Connect this OBS instance to a websocket
Parameters
url: string
optionalpassword: string
Returns Promise<void>
off
Type parameters
- T: keyof OBSEventTypes
Parameters
event: T
callback: (data: Omit<OBSEventTypes, never> & OBSEventTypesOverrides[T]) => void
Returns void
on
Type parameters
- T: keyof OBSEventTypes
Parameters
event: T
callback: (data: Omit<OBSEventTypes, never> & OBSEventTypesOverrides[T]) => void
Returns OBS
startStreaming
Returns Promise<void>
stopStreaming
Returns Promise<void>
toggleStreaming
Returns Promise<void>
All of the sources that this OBS instance has access to, excluding scenes