command library
Messages are exchanged between the client and the server as JSON objects. The protocol is based on the original OBS Remote protocol created by Bill Hamilton, with new commands specific to OBS Studio.
Classes
- ObsAuthorizeCommand
- Generate a refresh token used to authenticate the command line API requests
- ObsBroadcastCustomEventCommand
- Broadcasts a CustomEvent to all WebSocket clients. Receivers are clients which are identified and subscribed.
- ObsBrowserEventCommand
- Helper method to send a VendorRequest specifically to the 'obs-browser' plugin.
- ObsCallVendorRequestCommand
- Call a request registered to a vendor.
- ObsConfigCommand
- Config Requests
- ObsGeneralCommand
- General Requests
- ObsGetCurrentProgramSceneCommand
- ObsGetGroupListCommand
- ObsGetHotkeyListCommand
- Gets an array of all hotkey names in OBS
- ObsGetInputKindListCommand
- ObsGetInputListCommand
- ObsGetInputMuteCommand
- ObsGetMonitorListCommand
- Gets a list of connected monitors and information about them.
- ObsGetRecordDirectoryCommand
- Gets the current directory that the record output is set to.
- ObsGetSceneItemListCommand
- Gets a list of all scene items in a scene.
- ObsGetSceneItemLockedCommand
- Gets the lock state of a scene item.
- ObsGetScenesListCommand
- ObsGetSourceActiveCommand
- Gets the active and show state of a source.
- ObsGetSourceScreenshotCommand
- Gets a Base64-encoded screenshot of a source.
- ObsGetStatsCommand
- Gets statistics about OBS, obs-websocket, and the current session.
- ObsGetStreamServiceSettingsCommand
- Gets the current stream service settings (stream destination).
- ObsGetStreamStatusCommand
- Gets the status of the stream output.
- ObsGetStudioModeEnabledCommand
- Gets whether studio is enabled.
- ObsGetVersionCommand
- Gets data about the current plugin and RPC version.
- ObsGetVideoSettingsCommand
- Gets the current video settings.
- ObsHelperCommand
- ObsInputsCommand
- Config Requests
- ObSleepCommand
- Sleeps for a time duration or number of frames. Only available in request batches with types SERIAL_REALTIME or SERIAL_FRAME.
- ObsListenCommand
- Listen fir OBS events
- ObsRemoveInputCommand
- ObsSaveSourceScreenshotCommand
- Saves a screenshot of a source to the filesystem.
- ObsSceneItemsCommand
- SceneItem Requests
- ObsScenesCommand
- Scenes Requests
- ObsSendCommand
- Listen fir OBS events
- ObsSendStreamCaptionCommand
- Sends CEA-608 caption text over the stream output.
- ObsSetInputMuteCommand
- ObsSetInputNameCommand
- ObsSetSceneItemLockedCommand
- Sets the lock state of a scene item.
- ObsSetStreamServiceSettingsCommand
- Sets the current video settings.
- ObsSetStudioModeEnabledCommand
- Enables or disables studio mode
- ObsSetVideoSettingsCommand
- Sets the current video settings.
- ObsSourcesCommand
- Sources Requests
- ObsStartStreamCommand
- Starts the stream output.
- ObsStopStreamCommand
- Stops the stream output.
- ObsStreamCommand
- ObsToggleInputMuteCommand
- ObsToggleStreamCommand
- Toggles the status of the stream output.
- ObsTriggerHotkeyByKeySequenceCommand
- Triggers a hotkey using a sequence of keys.
- ObsTriggerHotkeyByNameCommand
-
Triggers a hotkey using its name. See
ObsGetHotkeyListCommand
. - ObsUiCommand
- UI Requests
- ObsVersionCommand
- Generate a refresh token used to authenticate the command line API requests