WebSocket API
obs-studio-rust ships the upstream obs-websocket plugin unmodified as its compatibility check, so clients written for obs-websocket v5 (OBS 28 and later) are expected to work against it unchanged. This reference is generated from protocol.json at the exact commit obs-studio ships.
Live console disconnected
Connect straight to your own OBS: enable it under Tools → WebSocket Server Settings. Everything stays between this tab and your machine. The password only feeds the SHA-256 challenge and is never stored. No OBS at hand? Replay a session.
Replay, no socket open: scripted from the protocol of obs-studio-rust-v1.0.0, written by hand and checked against protocol.json.
GetCanvasListrequestcanvasesGets an array of canvases in OBS.
Gets an array of canvases in OBS.
Response fields
canvases | Array<Object> | Array of canvases |
Example message
{
"op": 6,
"d": {
"requestType": "GetCanvasList",
"requestId": "1"
}
}GetPersistentDatarequestconfigGets the value of a "slot" from the selected persistent data realm.
Gets the value of a "slot" from the selected persistent data realm.
Request fields
realm | String | The data realm to select. OBS_WEBSOCKET_DATA_REALM_GLOBAL or OBS_WEBSOCKET_DATA_REALM_PROFILE |
slotName | String | The name of the slot to retrieve data from |
Response fields
slotValue | Any | Value associated with the slot. null if not set |
Example message
{
"op": 6,
"d": {
"requestType": "GetPersistentData",
"requestId": "1",
"requestData": {
"realm": "",
"slotName": ""
}
}
}SetPersistentDatarequestconfigSets the value of a "slot" from the selected persistent data realm.
Sets the value of a "slot" from the selected persistent data realm.
Request fields
realm | String | The data realm to select. OBS_WEBSOCKET_DATA_REALM_GLOBAL or OBS_WEBSOCKET_DATA_REALM_PROFILE |
slotName | String | The name of the slot to retrieve data from |
slotValue | Any | The value to apply to the slot |
Example message
{
"op": 6,
"d": {
"requestType": "SetPersistentData",
"requestId": "1",
"requestData": {
"realm": "",
"slotName": "",
"slotValue": null
}
}
}GetSceneCollectionListrequestconfigGets an array of all scene collections
Gets an array of all scene collections
Response fields
currentSceneCollectionName | String | The name of the current scene collection |
sceneCollections | Array<String> | Array of all available scene collections |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneCollectionList",
"requestId": "1"
}
}SetCurrentSceneCollectionrequestconfigSwitches to a scene collection.
Switches to a scene collection.
Note: This will block until the collection has finished changing.
Request fields
sceneCollectionName | String | Name of the scene collection to switch to |
Example message
{
"op": 6,
"d": {
"requestType": "SetCurrentSceneCollection",
"requestId": "1",
"requestData": {
"sceneCollectionName": ""
}
}
}CreateSceneCollectionrequestconfigCreates a new scene collection, switching to it in the process.
Creates a new scene collection, switching to it in the process.
Note: This will block until the collection has finished changing.
Request fields
sceneCollectionName | String | Name for the new scene collection |
Example message
{
"op": 6,
"d": {
"requestType": "CreateSceneCollection",
"requestId": "1",
"requestData": {
"sceneCollectionName": ""
}
}
}GetProfileListrequestconfigGets an array of all profiles
Gets an array of all profiles
Response fields
currentProfileName | String | The name of the current profile |
profiles | Array<String> | Array of all available profiles |
Example message
{
"op": 6,
"d": {
"requestType": "GetProfileList",
"requestId": "1"
}
}SetCurrentProfilerequestconfigSwitches to a profile.
Switches to a profile.
Request fields
profileName | String | Name of the profile to switch to |
Example message
{
"op": 6,
"d": {
"requestType": "SetCurrentProfile",
"requestId": "1",
"requestData": {
"profileName": ""
}
}
}CreateProfilerequestconfigCreates a new profile, switching to it in the process
Creates a new profile, switching to it in the process
Request fields
profileName | String | Name for the new profile |
Example message
{
"op": 6,
"d": {
"requestType": "CreateProfile",
"requestId": "1",
"requestData": {
"profileName": ""
}
}
}RemoveProfilerequestconfigRemoves a profile.
Removes a profile. If the current profile is chosen, it will change to a different profile first.
Request fields
profileName | String | Name of the profile to remove |
Example message
{
"op": 6,
"d": {
"requestType": "RemoveProfile",
"requestId": "1",
"requestData": {
"profileName": ""
}
}
}GetProfileParameterrequestconfigGets a parameter from the current profile's configuration.
Gets a parameter from the current profile's configuration.
Request fields
parameterCategory | String | Category of the parameter to get |
parameterName | String | Name of the parameter to get |
Response fields
parameterValue | String | Value associated with the parameter. null if not set and no default |
defaultParameterValue | String | Default value associated with the parameter. null if no default |
Example message
{
"op": 6,
"d": {
"requestType": "GetProfileParameter",
"requestId": "1",
"requestData": {
"parameterCategory": "",
"parameterName": ""
}
}
}SetProfileParameterrequestconfigSets the value of a parameter in the current profile's configuration.
Sets the value of a parameter in the current profile's configuration.
Request fields
parameterCategory | String | Category of the parameter to set |
parameterName | String | Name of the parameter to set |
parameterValue | String | Value of the parameter to set. Use null to delete |
Example message
{
"op": 6,
"d": {
"requestType": "SetProfileParameter",
"requestId": "1",
"requestData": {
"parameterCategory": "",
"parameterName": "",
"parameterValue": ""
}
}
}GetVideoSettingsrequestconfigGets the current video settings.
Gets the current video settings.
Note: To get the true FPS value, divide the FPS numerator by the FPS denominator. Example: 60000/1001
Response fields
fpsNumerator | Number | Numerator of the fractional FPS value |
fpsDenominator | Number | Denominator of the fractional FPS value |
baseWidth | Number | Width of the base (canvas) resolution in pixels |
baseHeight | Number | Height of the base (canvas) resolution in pixels |
outputWidth | Number | Width of the output resolution in pixels |
outputHeight | Number | Height of the output resolution in pixels |
Example message
{
"op": 6,
"d": {
"requestType": "GetVideoSettings",
"requestId": "1"
}
}SetVideoSettingsrequestconfigSets the current video settings.
Sets the current video settings.
Note: Fields must be specified in pairs. For example, you cannot set only baseWidth without needing to specify baseHeight.
Request fields
fpsNumeratoroptional | Number | Numerator of the fractional FPS value >= 1 |
fpsDenominatoroptional | Number | Denominator of the fractional FPS value >= 1 |
baseWidthoptional | Number | Width of the base (canvas) resolution in pixels >= 1, <= 4096 |
baseHeightoptional | Number | Height of the base (canvas) resolution in pixels >= 1, <= 4096 |
outputWidthoptional | Number | Width of the output resolution in pixels >= 1, <= 4096 |
outputHeightoptional | Number | Height of the output resolution in pixels >= 1, <= 4096 |
Example message
{
"op": 6,
"d": {
"requestType": "SetVideoSettings",
"requestId": "1",
"requestData": {}
}
}GetStreamServiceSettingsrequestconfigGets the current stream service settings (stream destination).
Gets the current stream service settings (stream destination).
Response fields
streamServiceType | String | Stream service type, like rtmp_custom or rtmp_common |
streamServiceSettings | Object | Stream service settings |
Example message
{
"op": 6,
"d": {
"requestType": "GetStreamServiceSettings",
"requestId": "1"
}
}SetStreamServiceSettingsrequestconfigSets the current stream service settings (stream destination).
Sets the current stream service settings (stream destination).
Note: Simple RTMP settings can be set with type rtmp_custom and the settings fields server and key.
Request fields
streamServiceType | String | Type of stream service to apply. Example: rtmp_common or rtmp_custom |
streamServiceSettings | Object | Settings to apply to the service |
Example message
{
"op": 6,
"d": {
"requestType": "SetStreamServiceSettings",
"requestId": "1",
"requestData": {
"streamServiceType": "",
"streamServiceSettings": {}
}
}
}GetRecordDirectoryrequestconfigGets the current directory that the record output is set to.
Gets the current directory that the record output is set to.
Response fields
recordDirectory | String | Output directory |
Example message
{
"op": 6,
"d": {
"requestType": "GetRecordDirectory",
"requestId": "1"
}
}SetRecordDirectoryrequestconfigSets the current directory that the record output writes files to.
Sets the current directory that the record output writes files to.
Request fields
recordDirectory | String | Output directory |
Example message
{
"op": 6,
"d": {
"requestType": "SetRecordDirectory",
"requestId": "1",
"requestData": {
"recordDirectory": ""
}
}
}GetSourceFilterKindListrequestfiltersGets an array of all available source filter kinds.
Gets an array of all available source filter kinds.
Similar to GetInputKindList
Response fields
sourceFilterKinds | Array<String> | Array of source filter kinds |
Example message
{
"op": 6,
"d": {
"requestType": "GetSourceFilterKindList",
"requestId": "1"
}
}GetSourceFilterListrequestfiltersGets an array of all of a source's filters.
Gets an array of all of a source's filters.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source |
sourceUuidoptional | String | UUID of the source |
Response fields
filters | Array<Object> | Array of filters |
Example message
{
"op": 6,
"d": {
"requestType": "GetSourceFilterList",
"requestId": "1",
"requestData": {}
}
}GetSourceFilterDefaultSettingsrequestfiltersGets the default settings for a filter kind.
Gets the default settings for a filter kind.
Request fields
filterKind | String | Filter kind to get the default settings for |
Response fields
defaultFilterSettings | Object | Object of default settings for the filter kind |
Example message
{
"op": 6,
"d": {
"requestType": "GetSourceFilterDefaultSettings",
"requestId": "1",
"requestData": {
"filterKind": ""
}
}
}CreateSourceFilterrequestfiltersCreates a new filter, adding it to the specified source.
Creates a new filter, adding it to the specified source.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source to add the filter to |
sourceUuidoptional | String | UUID of the source to add the filter to |
filterName | String | Name of the new filter to be created |
filterKind | String | The kind of filter to be created |
filterSettingsoptional | Object | Settings object to initialize the filter with |
Example message
{
"op": 6,
"d": {
"requestType": "CreateSourceFilter",
"requestId": "1",
"requestData": {
"filterName": "",
"filterKind": ""
}
}
}RemoveSourceFilterrequestfiltersRemoves a filter from a source.
Removes a filter from a source.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source the filter is on |
sourceUuidoptional | String | UUID of the source the filter is on |
filterName | String | Name of the filter to remove |
Example message
{
"op": 6,
"d": {
"requestType": "RemoveSourceFilter",
"requestId": "1",
"requestData": {
"filterName": ""
}
}
}SetSourceFilterNamerequestfiltersSets the name of a source filter (rename).
Sets the name of a source filter (rename).
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source the filter is on |
sourceUuidoptional | String | UUID of the source the filter is on |
filterName | String | Current name of the filter |
newFilterName | String | New name for the filter |
Example message
{
"op": 6,
"d": {
"requestType": "SetSourceFilterName",
"requestId": "1",
"requestData": {
"filterName": "",
"newFilterName": ""
}
}
}GetSourceFilterrequestfiltersGets the info for a specific source filter.
Gets the info for a specific source filter.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source |
sourceUuidoptional | String | UUID of the source |
filterName | String | Name of the filter |
Response fields
filterEnabled | Boolean | Whether the filter is enabled |
filterIndex | Number | Index of the filter in the list, beginning at 0 |
filterKind | String | The kind of filter |
filterSettings | Object | Settings object associated with the filter |
Example message
{
"op": 6,
"d": {
"requestType": "GetSourceFilter",
"requestId": "1",
"requestData": {
"filterName": ""
}
}
}SetSourceFilterIndexrequestfiltersSets the index position of a filter on a source.
Sets the index position of a filter on a source.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source the filter is on |
sourceUuidoptional | String | UUID of the source the filter is on |
filterName | String | Name of the filter |
filterIndex | Number | New index position of the filter >= 0 |
Example message
{
"op": 6,
"d": {
"requestType": "SetSourceFilterIndex",
"requestId": "1",
"requestData": {
"filterName": "",
"filterIndex": 0
}
}
}SetSourceFilterSettingsrequestfiltersSets the settings of a source filter.
Sets the settings of a source filter.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source the filter is on |
sourceUuidoptional | String | UUID of the source the filter is on |
filterName | String | Name of the filter to set the settings of |
filterSettings | Object | Object of settings to apply |
overlayoptional | Boolean | True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings. |
Example message
{
"op": 6,
"d": {
"requestType": "SetSourceFilterSettings",
"requestId": "1",
"requestData": {
"filterName": "",
"filterSettings": {}
}
}
}SetSourceFilterEnabledrequestfiltersSets the enable state of a source filter.
Sets the enable state of a source filter.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source the filter is on |
sourceUuidoptional | String | UUID of the source the filter is on |
filterName | String | Name of the filter |
filterEnabled | Boolean | New enable state of the filter |
Example message
{
"op": 6,
"d": {
"requestType": "SetSourceFilterEnabled",
"requestId": "1",
"requestData": {
"filterName": "",
"filterEnabled": true
}
}
}GetVersionrequestgeneralGets data about the current plugin and RPC version.
Gets data about the current plugin and RPC version.
Response fields
obsVersion | String | Current OBS Studio version |
obsWebSocketVersion | String | Current obs-websocket version |
rpcVersion | Number | Current latest obs-websocket RPC version |
availableRequests | Array<String> | Array of available RPC requests for the currently negotiated RPC version |
supportedImageFormats | Array<String> | Image formats available in GetSourceScreenshot and SaveSourceScreenshot requests. |
platform | String | Name of the platform. Usually windows, macos, or ubuntu (linux flavor). Not guaranteed to be any of those |
platformDescription | String | Description of the platform, like Windows 10 (10.0) |
Example message
{
"op": 6,
"d": {
"requestType": "GetVersion",
"requestId": "1"
}
}GetStatsrequestgeneralrequests).
requests). os_cpu_usage_info_query() updates it, and requests run in
parallel on the thread pool. */
Gets statistics about OBS, obs-websocket, and the current session.
Response fields
cpuUsage | Number | CPU usage of OBS in percent since this client's previous GetStats (since it connected, for the first) |
memoryUsage | Number | Amount of memory in MB currently being used by OBS |
availableDiskSpace | Number | Available disk space on the device being used for recording storage |
activeFps | Number | Current FPS being rendered |
averageFrameRenderTime | Number | Average time in milliseconds that OBS is taking to render a frame |
renderSkippedFrames | Number | Number of frames skipped by OBS in the render thread |
renderTotalFrames | Number | Total number of frames outputted by the render thread |
outputSkippedFrames | Number | Number of frames skipped by OBS in the output thread |
outputTotalFrames | Number | Total number of frames outputted by the output thread |
gpuAcceleration | Object | GPU acceleration status (state green/yellow/red, adapter, detectedGpus, summary, causes), or null when the frontend does not report it |
webSocketSessionIncomingMessages | Number | Total number of messages received by obs-websocket from the client |
webSocketSessionOutgoingMessages | Number | Total number of messages sent by obs-websocket to the client |
Example message
{
"op": 6,
"d": {
"requestType": "GetStats",
"requestId": "1"
}
}BroadcastCustomEventrequestgeneralBroadcasts a CustomEvent to all WebSocket clients.
Broadcasts a CustomEvent to all WebSocket clients. Receivers are clients which are identified and subscribed.
Request fields
eventData | Object | Data payload to emit to all receivers |
Example message
{
"op": 6,
"d": {
"requestType": "BroadcastCustomEvent",
"requestId": "1",
"requestData": {
"eventData": {}
}
}
}CallVendorRequestrequestgeneralCall a request registered to a vendor.
Call a request registered to a vendor.
A vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.
If a plugin or script implements vendor requests or events, documentation is expected to be provided with them.
Request fields
vendorName | String | Name of the vendor to use |
requestType | String | The request type to call |
requestDataoptional | Object | Object containing appropriate request data |
Response fields
vendorName | String | Echoed of vendorName |
requestType | String | Echoed of requestType |
responseData | Object | Object containing appropriate response data. {} if request does not provide any response data |
Example message
{
"op": 6,
"d": {
"requestType": "CallVendorRequest",
"requestId": "1",
"requestData": {
"vendorName": "",
"requestType": ""
}
}
}GetHotkeyListrequestgeneralGets an array of all hotkey names in OBS.
Gets an array of all hotkey names in OBS.
Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.
Response fields
hotkeys | Array<String> | Array of hotkey names |
Example message
{
"op": 6,
"d": {
"requestType": "GetHotkeyList",
"requestId": "1"
}
}TriggerHotkeyByNamerequestgeneralTriggers a hotkey using its name.
Triggers a hotkey using its name. See GetHotkeyList.
Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.
Request fields
hotkeyName | String | Name of the hotkey to trigger |
contextNameoptional | String | Name of context of the hotkey to trigger |
Example message
{
"op": 6,
"d": {
"requestType": "TriggerHotkeyByName",
"requestId": "1",
"requestData": {
"hotkeyName": ""
}
}
}TriggerHotkeyByKeySequencerequestgeneralTriggers a hotkey using a sequence of keys.
Triggers a hotkey using a sequence of keys.
Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.
Request fields
keyIdoptional | String | The OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h |
keyModifiersoptional | Object | Object containing key modifiers to apply |
keyModifiers.shiftoptional | Boolean | Press Shift |
keyModifiers.controloptional | Boolean | Press CTRL |
keyModifiers.altoptional | Boolean | Press ALT |
keyModifiers.commandoptional | Boolean | Press CMD (Mac) |
Example message
{
"op": 6,
"d": {
"requestType": "TriggerHotkeyByKeySequence",
"requestId": "1",
"requestData": {}
}
}SleeprequestgeneralSleeps for a time duration or number of frames.
Sleeps for a time duration or number of frames. Only available in request batches with types SERIAL_REALTIME or SERIAL_FRAME.
Request fields
sleepMillisoptional | Number | Number of milliseconds to sleep for (if SERIAL_REALTIME mode)>= 0, <= 50000 |
sleepFramesoptional | Number | Number of frames to sleep for (if SERIAL_FRAME mode)>= 0, <= 10000 |
Example message
{
"op": 6,
"d": {
"requestType": "Sleep",
"requestId": "1",
"requestData": {}
}
}GetInputListrequestinputsrenders.
renders. Prune every scene now, as the frontend does after it removes a
scene. The scenes are collected first, so no enumeration lock is held
while a scene takes its video lock. */
Gets an array of all inputs in OBS.
Request fields
inputKindoptional | String | Restrict the array to only inputs of the specified kind |
Response fields
inputs | Array<Object> | Array of inputs |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputList",
"requestId": "1",
"requestData": {}
}
}GetInputKindListrequestinputsGets an array of all available input kinds in OBS.
Gets an array of all available input kinds in OBS.
Request fields
unversionedoptional | Boolean | True == Return all kinds as unversioned, False == Return with version suffixes (if available) |
Response fields
inputKinds | Array<String> | Array of input kinds |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputKindList",
"requestId": "1",
"requestData": {}
}
}GetSpecialInputsrequestinputsGets the names of all special inputs.
Gets the names of all special inputs.
Response fields
desktop1 | String | Name of the Desktop Audio input |
desktop2 | String | Name of the Desktop Audio 2 input |
mic1 | String | Name of the Mic/Auxiliary Audio input |
mic2 | String | Name of the Mic/Auxiliary Audio 2 input |
mic3 | String | Name of the Mic/Auxiliary Audio 3 input |
mic4 | String | Name of the Mic/Auxiliary Audio 4 input |
Example message
{
"op": 6,
"d": {
"requestType": "GetSpecialInputs",
"requestId": "1"
}
}CreateInputrequestinputsCreates a new input, adding it as a scene item to the specified scene.
Creates a new input, adding it as a scene item to the specified scene.
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene to add the input to as a scene item |
sceneUuidoptional | String | UUID of the scene to add the input to as a scene item |
inputName | String | Name of the new input to created |
inputKind | String | The kind of input to be created |
inputSettingsoptional | Object | Settings object to initialize the input with |
sceneItemEnabledoptional | Boolean | Whether to set the created scene item to enabled or disabled |
Response fields
inputUuid | String | UUID of the newly created input |
sceneItemId | Number | ID of the newly created scene item |
Example message
{
"op": 6,
"d": {
"requestType": "CreateInput",
"requestId": "1",
"requestData": {
"inputName": "",
"inputKind": ""
}
}
}RemoveInputrequestinputsRemoves an existing input.
Removes an existing input.
Note: Will immediately remove all associated scene items.
Request fields
inputNameoptional | String | Name of the input to remove |
inputUuidoptional | String | UUID of the input to remove |
Example message
{
"op": 6,
"d": {
"requestType": "RemoveInput",
"requestId": "1",
"requestData": {}
}
}SetInputNamerequestinputsSets the name of an input (rename).
Sets the name of an input (rename).
Request fields
inputNameoptional | String | Current input name |
inputUuidoptional | String | Current input UUID |
newInputName | String | New name for the input |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputName",
"requestId": "1",
"requestData": {
"newInputName": ""
}
}
}GetInputDefaultSettingsrequestinputsGets the default settings for an input kind.
Gets the default settings for an input kind.
Request fields
inputKind | String | Input kind to get the default settings for |
Response fields
defaultInputSettings | Object | Object of default settings for the input kind |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputDefaultSettings",
"requestId": "1",
"requestData": {
"inputKind": ""
}
}
}GetInputSettingsrequestinputsGets the settings of an input.
Gets the settings of an input.
Note: Does not include defaults. To create the entire settings object, overlay inputSettings over the defaultInputSettings provided by GetInputDefaultSettings.
Request fields
inputNameoptional | String | Name of the input to get the settings of |
inputUuidoptional | String | UUID of the input to get the settings of |
Response fields
inputSettings | Object | Object of settings for the input |
inputKind | String | The kind of the input |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputSettings",
"requestId": "1",
"requestData": {}
}
}SetInputSettingsrequestinputsSets the settings of an input.
Sets the settings of an input.
Request fields
inputNameoptional | String | Name of the input to set the settings of |
inputUuidoptional | String | UUID of the input to set the settings of |
inputSettings | Object | Object of settings to apply |
overlayoptional | Boolean | True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings. |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputSettings",
"requestId": "1",
"requestData": {
"inputSettings": {}
}
}
}GetInputMuterequestinputsGets the audio mute state of an input.
Gets the audio mute state of an input.
Request fields
inputNameoptional | String | Name of input to get the mute state of |
inputUuidoptional | String | UUID of input to get the mute state of |
Response fields
inputMuted | Boolean | Whether the input is muted |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputMute",
"requestId": "1",
"requestData": {}
}
}SetInputMuterequestinputsSets the audio mute state of an input.
Sets the audio mute state of an input.
Request fields
inputNameoptional | String | Name of the input to set the mute state of |
inputUuidoptional | String | UUID of the input to set the mute state of |
inputMuted | Boolean | Whether to mute the input or not |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputMute",
"requestId": "1",
"requestData": {
"inputMuted": true
}
}
}ToggleInputMuterequestinputsToggles the audio mute state of an input.
Toggles the audio mute state of an input.
Request fields
inputNameoptional | String | Name of the input to toggle the mute state of |
inputUuidoptional | String | UUID of the input to toggle the mute state of |
Response fields
inputMuted | Boolean | Whether the input has been muted or unmuted |
Example message
{
"op": 6,
"d": {
"requestType": "ToggleInputMute",
"requestId": "1",
"requestData": {}
}
}GetInputVolumerequestinputsGets the current volume setting of an input.
Gets the current volume setting of an input.
Request fields
inputNameoptional | String | Name of the input to get the volume of |
inputUuidoptional | String | UUID of the input to get the volume of |
Response fields
inputVolumeMul | Number | Volume setting in mul |
inputVolumeDb | Number | Volume setting in dB |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputVolume",
"requestId": "1",
"requestData": {}
}
}SetInputVolumerequestinputsSets the volume setting of an input.
Sets the volume setting of an input.
Request fields
inputNameoptional | String | Name of the input to set the volume of |
inputUuidoptional | String | UUID of the input to set the volume of |
inputVolumeMuloptional | Number | Volume setting in mul >= 0, <= 20 |
inputVolumeDboptional | Number | Volume setting in dB >= -100, <= 26 |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputVolume",
"requestId": "1",
"requestData": {}
}
}GetInputAudioBalancerequestinputsGets the audio balance of an input.
Gets the audio balance of an input.
Request fields
inputNameoptional | String | Name of the input to get the audio balance of |
inputUuidoptional | String | UUID of the input to get the audio balance of |
Response fields
inputAudioBalance | Number | Audio balance value from 0.0-1.0 |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputAudioBalance",
"requestId": "1",
"requestData": {}
}
}SetInputAudioBalancerequestinputsSets the audio balance of an input.
Sets the audio balance of an input.
Request fields
inputNameoptional | String | Name of the input to set the audio balance of |
inputUuidoptional | String | UUID of the input to set the audio balance of |
inputAudioBalance | Number | New audio balance value >= 0.0, <= 1.0 |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputAudioBalance",
"requestId": "1",
"requestData": {
"inputAudioBalance": 0
}
}
}GetInputAudioSyncOffsetrequestinputsGets the audio sync offset of an input.
Gets the audio sync offset of an input.
Note: The audio sync offset can be negative too!
Request fields
inputNameoptional | String | Name of the input to get the audio sync offset of |
inputUuidoptional | String | UUID of the input to get the audio sync offset of |
Response fields
inputAudioSyncOffset | Number | Audio sync offset in milliseconds |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputAudioSyncOffset",
"requestId": "1",
"requestData": {}
}
}SetInputAudioSyncOffsetrequestinputsSets the audio sync offset of an input.
Sets the audio sync offset of an input.
Request fields
inputNameoptional | String | Name of the input to set the audio sync offset of |
inputUuidoptional | String | UUID of the input to set the audio sync offset of |
inputAudioSyncOffset | Number | New audio sync offset in milliseconds >= -950, <= 20000 |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputAudioSyncOffset",
"requestId": "1",
"requestData": {
"inputAudioSyncOffset": 0
}
}
}GetInputAudioMonitorTyperequestinputsGets the audio monitor type of an input.
Gets the audio monitor type of an input.
The available audio monitor types are:
- OBS_MONITORING_TYPE_NONE
- OBS_MONITORING_TYPE_MONITOR_ONLY
- OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT
Request fields
inputNameoptional | String | Name of the input to get the audio monitor type of |
inputUuidoptional | String | UUID of the input to get the audio monitor type of |
Response fields
monitorType | String | Audio monitor type |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputAudioMonitorType",
"requestId": "1",
"requestData": {}
}
}SetInputAudioMonitorTyperequestinputsSets the audio monitor type of an input.
Sets the audio monitor type of an input.
Request fields
inputNameoptional | String | Name of the input to set the audio monitor type of |
inputUuidoptional | String | UUID of the input to set the audio monitor type of |
monitorType | String | Audio monitor type |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputAudioMonitorType",
"requestId": "1",
"requestData": {
"monitorType": ""
}
}
}GetInputAudioTracksrequestinputsGets the enable state of all audio tracks of an input.
Gets the enable state of all audio tracks of an input.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
Response fields
inputAudioTracks | Object | Object of audio tracks and associated enable states |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputAudioTracks",
"requestId": "1",
"requestData": {}
}
}SetInputAudioTracksrequestinputsSets the enable state of audio tracks of an input.
Sets the enable state of audio tracks of an input.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
inputAudioTracks | Object | Track settings to apply |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputAudioTracks",
"requestId": "1",
"requestData": {
"inputAudioTracks": {}
}
}
}GetInputDeinterlaceModerequestinputsGets the deinterlace mode of an input.
Gets the deinterlace mode of an input.
Deinterlace Modes:
- OBS_DEINTERLACE_MODE_DISABLE
- OBS_DEINTERLACE_MODE_DISCARD
- OBS_DEINTERLACE_MODE_RETRO
- OBS_DEINTERLACE_MODE_BLEND
- OBS_DEINTERLACE_MODE_BLEND_2X
- OBS_DEINTERLACE_MODE_LINEAR
- OBS_DEINTERLACE_MODE_LINEAR_2X
- OBS_DEINTERLACE_MODE_YADIF
- OBS_DEINTERLACE_MODE_YADIF_2X
Note: Deinterlacing functionality is restricted to async inputs only.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
Response fields
inputDeinterlaceMode | String | Deinterlace mode of the input |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputDeinterlaceMode",
"requestId": "1",
"requestData": {}
}
}SetInputDeinterlaceModerequestinputsSets the deinterlace mode of an input.
Sets the deinterlace mode of an input.
Note: Deinterlacing functionality is restricted to async inputs only.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
inputDeinterlaceMode | String | Deinterlace mode for the input |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputDeinterlaceMode",
"requestId": "1",
"requestData": {
"inputDeinterlaceMode": ""
}
}
}GetInputDeinterlaceFieldOrderrequestinputsGets the deinterlace field order of an input.
Gets the deinterlace field order of an input.
Deinterlace Field Orders:
- OBS_DEINTERLACE_FIELD_ORDER_TOP
- OBS_DEINTERLACE_FIELD_ORDER_BOTTOM
Note: Deinterlacing functionality is restricted to async inputs only.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
Response fields
inputDeinterlaceFieldOrder | String | Deinterlace field order of the input |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputDeinterlaceFieldOrder",
"requestId": "1",
"requestData": {}
}
}SetInputDeinterlaceFieldOrderrequestinputsSets the deinterlace field order of an input.
Sets the deinterlace field order of an input.
Note: Deinterlacing functionality is restricted to async inputs only.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
inputDeinterlaceFieldOrder | String | Deinterlace field order for the input |
Example message
{
"op": 6,
"d": {
"requestType": "SetInputDeinterlaceFieldOrder",
"requestId": "1",
"requestData": {
"inputDeinterlaceFieldOrder": ""
}
}
}GetInputPropertiesListPropertyItemsrequestinputsGets the items of a list property from an input's properties.
Gets the items of a list property from an input's properties.
Note: Use this in cases where an input provides a dynamic, selectable list of items. For example, display capture, where it provides a list of available displays.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
propertyName | String | Name of the list property to get the items of |
Response fields
propertyItems | Array<Object> | Array of items in the list property |
Example message
{
"op": 6,
"d": {
"requestType": "GetInputPropertiesListPropertyItems",
"requestId": "1",
"requestData": {
"propertyName": ""
}
}
}PressInputPropertiesButtonrequestinputsPresses a button in the properties of an input.
Presses a button in the properties of an input.
Some known propertyName values are:
- refreshnocache - Browser source reload button
Note: Use this in cases where there is a button in the properties of an input that cannot be accessed in any other way. For example, browser sources, where there is a refresh button.
Request fields
inputNameoptional | String | Name of the input |
inputUuidoptional | String | UUID of the input |
propertyName | String | Name of the button property to press |
Example message
{
"op": 6,
"d": {
"requestType": "PressInputPropertiesButton",
"requestId": "1",
"requestData": {
"propertyName": ""
}
}
}GetMediaInputStatusrequestmedia inputsGets the status of a media input.
Gets the status of a media input.
Media States:
- OBS_MEDIA_STATE_NONE
- OBS_MEDIA_STATE_PLAYING
- OBS_MEDIA_STATE_OPENING
- OBS_MEDIA_STATE_BUFFERING
- OBS_MEDIA_STATE_PAUSED
- OBS_MEDIA_STATE_STOPPED
- OBS_MEDIA_STATE_ENDED
- OBS_MEDIA_STATE_ERROR
Request fields
inputNameoptional | String | Name of the media input |
inputUuidoptional | String | UUID of the media input |
Response fields
mediaState | String | State of the media input |
mediaDuration | Number | Total duration of the playing media in milliseconds. null if not playing |
mediaCursor | Number | Position of the cursor in milliseconds. null if not playing |
Example message
{
"op": 6,
"d": {
"requestType": "GetMediaInputStatus",
"requestId": "1",
"requestData": {}
}
}SetMediaInputCursorrequestmedia inputsSets the cursor position of a media input.
Sets the cursor position of a media input.
This request does not perform bounds checking of the cursor position.
Request fields
inputNameoptional | String | Name of the media input |
inputUuidoptional | String | UUID of the media input |
mediaCursor | Number | New cursor position to set >= 0 |
Example message
{
"op": 6,
"d": {
"requestType": "SetMediaInputCursor",
"requestId": "1",
"requestData": {
"mediaCursor": 0
}
}
}OffsetMediaInputCursorrequestmedia inputsOffsets the current cursor position of a media input by the specified value.
Offsets the current cursor position of a media input by the specified value.
This request does not perform bounds checking of the cursor position.
Request fields
inputNameoptional | String | Name of the media input |
inputUuidoptional | String | UUID of the media input |
mediaCursorOffset | Number | Value to offset the current cursor position by |
Example message
{
"op": 6,
"d": {
"requestType": "OffsetMediaInputCursor",
"requestId": "1",
"requestData": {
"mediaCursorOffset": 0
}
}
}TriggerMediaInputActionrequestmedia inputsTriggers an action on a media input.
Triggers an action on a media input.
Request fields
inputNameoptional | String | Name of the media input |
inputUuidoptional | String | UUID of the media input |
mediaAction | String | Identifier of the ObsMediaInputAction enum |
Example message
{
"op": 6,
"d": {
"requestType": "TriggerMediaInputAction",
"requestId": "1",
"requestData": {
"mediaAction": ""
}
}
}GetVirtualCamStatusrequestoutputsGets the status of the virtualcam output.
Gets the status of the virtualcam output.
Response fields
outputActive | Boolean | Whether the output is active |
Example message
{
"op": 6,
"d": {
"requestType": "GetVirtualCamStatus",
"requestId": "1"
}
}ToggleVirtualCamrequestoutputsToggles the state of the virtualcam output.
Toggles the state of the virtualcam output.
Response fields
outputActive | Boolean | Whether the output is active |
Example message
{
"op": 6,
"d": {
"requestType": "ToggleVirtualCam",
"requestId": "1"
}
}StartVirtualCamrequestoutputsStarts the virtualcam output.
Starts the virtualcam output.
Example message
{
"op": 6,
"d": {
"requestType": "StartVirtualCam",
"requestId": "1"
}
}StopVirtualCamrequestoutputsStops the virtualcam output.
Stops the virtualcam output.
Example message
{
"op": 6,
"d": {
"requestType": "StopVirtualCam",
"requestId": "1"
}
}GetReplayBufferStatusrequestoutputsGets the status of the replay buffer output.
Gets the status of the replay buffer output.
Response fields
outputActive | Boolean | Whether the output is active |
Example message
{
"op": 6,
"d": {
"requestType": "GetReplayBufferStatus",
"requestId": "1"
}
}ToggleReplayBufferrequestoutputsToggles the state of the replay buffer output.
Toggles the state of the replay buffer output.
Response fields
outputActive | Boolean | Whether the output is active |
Example message
{
"op": 6,
"d": {
"requestType": "ToggleReplayBuffer",
"requestId": "1"
}
}StartReplayBufferrequestoutputsStarts the replay buffer output.
Starts the replay buffer output.
Example message
{
"op": 6,
"d": {
"requestType": "StartReplayBuffer",
"requestId": "1"
}
}StopReplayBufferrequestoutputsStops the replay buffer output.
Stops the replay buffer output.
Example message
{
"op": 6,
"d": {
"requestType": "StopReplayBuffer",
"requestId": "1"
}
}SaveReplayBufferrequestoutputsSaves the contents of the replay buffer output.
Saves the contents of the replay buffer output.
Example message
{
"op": 6,
"d": {
"requestType": "SaveReplayBuffer",
"requestId": "1"
}
}GetLastReplayBufferReplayrequestoutputsGets the filename of the last replay buffer save file.
Gets the filename of the last replay buffer save file.
Response fields
savedReplayPath | String | File path |
Example message
{
"op": 6,
"d": {
"requestType": "GetLastReplayBufferReplay",
"requestId": "1"
}
}GetOutputListrequestoutputsGets the list of available outputs.
Gets the list of available outputs.
Response fields
outputs | Array<Object> | Array of outputs |
Example message
{
"op": 6,
"d": {
"requestType": "GetOutputList",
"requestId": "1"
}
}GetOutputStatusrequestoutputsGets the status of an output.
Gets the status of an output.
Request fields
outputName | String | Output name |
Response fields
outputActive | Boolean | Whether the output is active |
outputReconnecting | Boolean | Whether the output is reconnecting |
outputTimecode | String | Current formatted timecode string for the output |
outputDuration | Number | Current duration in milliseconds for the output |
outputCongestion | Number | Congestion of the output |
outputBytes | Number | Number of bytes sent by the output |
outputSkippedFrames | Number | Number of frames skipped by the output's process |
outputTotalFrames | Number | Total number of frames delivered by the output's process |
Example message
{
"op": 6,
"d": {
"requestType": "GetOutputStatus",
"requestId": "1",
"requestData": {
"outputName": ""
}
}
}ToggleOutputrequestoutputsToggles the status of an output.
Toggles the status of an output.
Request fields
outputName | String | Output name |
Response fields
outputActive | Boolean | Whether the output is active |
Example message
{
"op": 6,
"d": {
"requestType": "ToggleOutput",
"requestId": "1",
"requestData": {
"outputName": ""
}
}
}StartOutputrequestoutputsStarts an output.
Starts an output.
Request fields
outputName | String | Output name |
Example message
{
"op": 6,
"d": {
"requestType": "StartOutput",
"requestId": "1",
"requestData": {
"outputName": ""
}
}
}StopOutputrequestoutputsStops an output.
Stops an output.
Request fields
outputName | String | Output name |
Example message
{
"op": 6,
"d": {
"requestType": "StopOutput",
"requestId": "1",
"requestData": {
"outputName": ""
}
}
}GetOutputSettingsrequestoutputsGets the settings of an output.
Gets the settings of an output.
Request fields
outputName | String | Output name |
Response fields
outputSettings | Object | Output settings |
Example message
{
"op": 6,
"d": {
"requestType": "GetOutputSettings",
"requestId": "1",
"requestData": {
"outputName": ""
}
}
}SetOutputSettingsrequestoutputsSets the settings of an output.
Sets the settings of an output.
Request fields
outputName | String | Output name |
outputSettings | Object | Output settings |
Example message
{
"op": 6,
"d": {
"requestType": "SetOutputSettings",
"requestId": "1",
"requestData": {
"outputName": "",
"outputSettings": {}
}
}
}GetRecordStatusrequestrecordGets the status of the record output.
Gets the status of the record output.
Response fields
outputActive | Boolean | Whether the output is active |
outputPaused | Boolean | Whether the output is paused |
outputTimecode | String | Current formatted timecode string for the output |
outputDuration | Number | Current duration in milliseconds for the output |
outputBytes | Number | Number of bytes sent by the output |
Example message
{
"op": 6,
"d": {
"requestType": "GetRecordStatus",
"requestId": "1"
}
}ToggleRecordrequestrecordToggles the status of the record output.
Toggles the status of the record output.
Response fields
outputActive | Boolean | The new active state of the output |
Example message
{
"op": 6,
"d": {
"requestType": "ToggleRecord",
"requestId": "1"
}
}StartRecordrequestrecordStarts the record output.
Starts the record output.
Example message
{
"op": 6,
"d": {
"requestType": "StartRecord",
"requestId": "1"
}
}StopRecordrequestrecordStops the record output.
Stops the record output.
Response fields
outputPath | String | File name for the saved recording |
Example message
{
"op": 6,
"d": {
"requestType": "StopRecord",
"requestId": "1"
}
}ToggleRecordPauserequestrecordToggles pause on the record output.
Toggles pause on the record output.
Example message
{
"op": 6,
"d": {
"requestType": "ToggleRecordPause",
"requestId": "1"
}
}PauseRecordrequestrecordPauses the record output.
Pauses the record output.
Example message
{
"op": 6,
"d": {
"requestType": "PauseRecord",
"requestId": "1"
}
}ResumeRecordrequestrecordResumes the record output.
Resumes the record output.
Example message
{
"op": 6,
"d": {
"requestType": "ResumeRecord",
"requestId": "1"
}
}SplitRecordFilerequestrecordSplits the current file being recorded into a new file.
Splits the current file being recorded into a new file.
Example message
{
"op": 6,
"d": {
"requestType": "SplitRecordFile",
"requestId": "1"
}
}CreateRecordChapterrequestrecordAdds a new chapter marker to the file currently being recorded.
Adds a new chapter marker to the file currently being recorded.
Note: As of OBS 30.2.0, the only file format supporting this feature is Hybrid MP4.
Request fields
chapterNameoptional | String | Name of the new chapter |
Example message
{
"op": 6,
"d": {
"requestType": "CreateRecordChapter",
"requestId": "1",
"requestData": {}
}
}GetSceneItemListrequestscene itemsGets a list of all scene items in a scene.
Gets a list of all scene items in a scene.
Scenes only
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene to get the items of |
sceneUuidoptional | String | UUID of the scene to get the items of |
Response fields
sceneItems | Array<Object> | Array of scene items in the scene |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemList",
"requestId": "1",
"requestData": {}
}
}GetGroupSceneItemListrequestscene itemsBasically GetSceneItemList, but for groups.
Basically GetSceneItemList, but for groups.
Using groups at all in OBS is discouraged, as they are very broken under the hood. Please use nested scenes instead.
Groups only
Request fields
canvasUuidoptional | String | UUID of the canvas the group is in, if using the sceneName field |
sceneNameoptional | String | Name of the group to get the items of |
sceneUuidoptional | String | UUID of the group to get the items of |
Response fields
sceneItems | Array<Object> | Array of scene items in the group |
Example message
{
"op": 6,
"d": {
"requestType": "GetGroupSceneItemList",
"requestId": "1",
"requestData": {}
}
}GetSceneItemIdrequestscene itemsSearches a scene for a source, and returns its id.
Searches a scene for a source, and returns its id.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene or group is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene or group to search in |
sceneUuidoptional | String | UUID of the scene or group to search in |
sourceName | String | Name of the source to find |
searchOffsetoptional | Number | Number of matches to skip during search. >= 0 means first forward. -1 means last (top) item >= -1 |
Response fields
sceneItemId | Number | Numeric ID of the scene item |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemId",
"requestId": "1",
"requestData": {
"sourceName": ""
}
}
}GetSceneItemSourcerequestscene itemsGets the source associated with a scene item.
Gets the source associated with a scene item.
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
Response fields
sourceName | String | Name of the source associated with the scene item |
sourceUuid | String | UUID of the source associated with the scene item |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemSource",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}CreateSceneItemrequestscene itemsCreates a new scene item using a source.
Creates a new scene item using a source.
Scenes only
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene to create the new item in |
sceneUuidoptional | String | UUID of the scene to create the new item in |
sourceNameoptional | String | Name of the source to add to the scene |
sourceUuidoptional | String | UUID of the source to add to the scene |
sceneItemEnabledoptional | Boolean | Enable state to apply to the scene item on creation |
Response fields
sceneItemId | Number | Numeric ID of the scene item |
Example message
{
"op": 6,
"d": {
"requestType": "CreateSceneItem",
"requestId": "1",
"requestData": {}
}
}RemoveSceneItemrequestscene itemsRemoves a scene item from a scene.
Removes a scene item from a scene.
Scenes only
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
Example message
{
"op": 6,
"d": {
"requestType": "RemoveSceneItem",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}DuplicateSceneItemrequestscene itemsDuplicates a scene item, copying all transform and crop info.
Duplicates a scene item, copying all transform and crop info.
Scenes only
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
destinationSceneNameoptional | String | Name of the scene to create the duplicated item in |
destinationSceneUuidoptional | String | UUID of the scene to create the duplicated item in |
Response fields
sceneItemId | Number | Numeric ID of the duplicated scene item |
Example message
{
"op": 6,
"d": {
"requestType": "DuplicateSceneItem",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}GetSceneItemTransformrequestscene itemsGets the transform and crop info of a scene item.
Gets the transform and crop info of a scene item.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
Response fields
sceneItemTransform | Object | Object containing scene item transform info |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemTransform",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}SetSceneItemTransformrequestscene itemsSets the transform and crop info of a scene item.
Sets the transform and crop info of a scene item.
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
sceneItemTransform | Object | Object containing scene item transform info to update |
Example message
{
"op": 6,
"d": {
"requestType": "SetSceneItemTransform",
"requestId": "1",
"requestData": {
"sceneItemId": 0,
"sceneItemTransform": {}
}
}
}GetSceneItemEnabledrequestscene itemsGets the enable state of a scene item.
Gets the enable state of a scene item.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
Response fields
sceneItemEnabled | Boolean | Whether the scene item is enabled. true for enabled, false for disabled |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemEnabled",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}SetSceneItemEnabledrequestscene itemsSets the enable state of a scene item.
Sets the enable state of a scene item.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
sceneItemEnabled | Boolean | New enable state of the scene item |
Example message
{
"op": 6,
"d": {
"requestType": "SetSceneItemEnabled",
"requestId": "1",
"requestData": {
"sceneItemId": 0,
"sceneItemEnabled": true
}
}
}GetSceneItemLockedrequestscene itemsGets the lock state of a scene item.
Gets the lock state of a scene item.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
Response fields
sceneItemLocked | Boolean | Whether the scene item is locked. true for locked, false for unlocked |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemLocked",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}SetSceneItemLockedrequestscene itemsSets the lock state of a scene item.
Sets the lock state of a scene item.
Scenes and Group
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
sceneItemLocked | Boolean | New lock state of the scene item |
Example message
{
"op": 6,
"d": {
"requestType": "SetSceneItemLocked",
"requestId": "1",
"requestData": {
"sceneItemId": 0,
"sceneItemLocked": true
}
}
}GetSceneItemIndexrequestscene itemsGets the index position of a scene item in a scene.
Gets the index position of a scene item in a scene.
An index of 0 is at the bottom of the source list in the UI.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
Response fields
sceneItemIndex | Number | Index position of the scene item |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemIndex",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}SetSceneItemIndexrequestscene itemsSets the index position of a scene item in a scene.
Sets the index position of a scene item in a scene.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
sceneItemIndex | Number | New index position of the scene item >= 0 |
Example message
{
"op": 6,
"d": {
"requestType": "SetSceneItemIndex",
"requestId": "1",
"requestData": {
"sceneItemId": 0,
"sceneItemIndex": 0
}
}
}GetSceneItemBlendModerequestscene itemsGets the blend mode of a scene item.
Gets the blend mode of a scene item.
Blend modes:
- OBS_BLEND_NORMAL
- OBS_BLEND_ADDITIVE
- OBS_BLEND_SUBTRACT
- OBS_BLEND_SCREEN
- OBS_BLEND_MULTIPLY
- OBS_BLEND_LIGHTEN
- OBS_BLEND_DARKEN
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
Response fields
sceneItemBlendMode | String | Current blend mode |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneItemBlendMode",
"requestId": "1",
"requestData": {
"sceneItemId": 0
}
}
}SetSceneItemBlendModerequestscene itemsSets the blend mode of a scene item.
Sets the blend mode of a scene item.
Scenes and Groups
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene the item is in |
sceneUuidoptional | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item >= 0 |
sceneItemBlendMode | String | New blend mode |
Example message
{
"op": 6,
"d": {
"requestType": "SetSceneItemBlendMode",
"requestId": "1",
"requestData": {
"sceneItemId": 0,
"sceneItemBlendMode": ""
}
}
}GetSceneListrequestscenesGets an array of scenes in OBS.
Gets an array of scenes in OBS.
Request fields
canvasUuidoptional | String | UUID of the canvas the scenes are in |
Response fields
currentProgramSceneName | String | Current program scene name. Can be null if non-main canvas or internal state desync |
currentProgramSceneUuid | String | Current program scene UUID. Can be null if non-main canvas or internal state desync |
currentPreviewSceneName | String | Current preview scene name. null if not in studio mode or non-main canvas |
currentPreviewSceneUuid | String | Current preview scene UUID. null if not in studio mode or non-main canvas |
scenes | Array<Object> | Array of scenes |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneList",
"requestId": "1",
"requestData": {}
}
}GetGroupListrequestscenesGets an array of all groups in OBS.
Gets an array of all groups in OBS.
Groups in OBS are actually scenes, but renamed and modified. In obs-websocket, we treat them as scenes where we can.
Response fields
groups | Array<String> | Array of group names |
Example message
{
"op": 6,
"d": {
"requestType": "GetGroupList",
"requestId": "1"
}
}GetCurrentProgramScenerequestscenesGets the current program scene.
Gets the current program scene.
Note 1: This request is slated to have the currentProgram-prefixed fields removed from in an upcoming RPC version.
Note 2: Canvases do not have any concept of a program or preview scene, so this request does not support canvases.
Response fields
sceneName | String | Current program scene name. null if there is no program scene |
sceneUuid | String | Current program scene UUID. null if there is no program scene |
currentProgramSceneName | String | Current program scene name (Deprecated) |
currentProgramSceneUuid | String | Current program scene UUID (Deprecated) |
Example message
{
"op": 6,
"d": {
"requestType": "GetCurrentProgramScene",
"requestId": "1"
}
}SetCurrentProgramScenerequestscenesSets the current program scene.
Sets the current program scene.
Request fields
sceneNameoptional | String | Scene name to set as the current program scene |
sceneUuidoptional | String | Scene UUID to set as the current program scene |
Example message
{
"op": 6,
"d": {
"requestType": "SetCurrentProgramScene",
"requestId": "1",
"requestData": {}
}
}GetCurrentPreviewScenerequestscenesGets the current preview scene.
Gets the current preview scene.
Only available when studio mode is enabled.
Note: This request is slated to have the currentPreview-prefixed fields removed from in an upcoming RPC version.
Response fields
sceneName | String | Current preview scene name. null if there is no preview scene |
sceneUuid | String | Current preview scene UUID. null if there is no preview scene |
currentPreviewSceneName | String | Current preview scene name |
currentPreviewSceneUuid | String | Current preview scene UUID |
Example message
{
"op": 6,
"d": {
"requestType": "GetCurrentPreviewScene",
"requestId": "1"
}
}SetCurrentPreviewScenerequestscenesSets the current preview scene.
Sets the current preview scene.
Only available when studio mode is enabled.
Request fields
sceneNameoptional | String | Scene name to set as the current preview scene |
sceneUuidoptional | String | Scene UUID to set as the current preview scene |
Example message
{
"op": 6,
"d": {
"requestType": "SetCurrentPreviewScene",
"requestId": "1",
"requestData": {}
}
}CreateScenerequestscenesCreates a new scene in OBS.
Creates a new scene in OBS.
Request fields
canvasUuidoptional | String | UUID of the canvas to create the new scene in. Leave default to assume main canvas |
sceneName | String | Name for the new scene |
Response fields
sceneUuid | String | UUID of the created scene |
Example message
{
"op": 6,
"d": {
"requestType": "CreateScene",
"requestId": "1",
"requestData": {
"sceneName": ""
}
}
}RemoveScenerequestscenesRemoves a scene from OBS.
Removes a scene from OBS.
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene to remove |
sceneUuidoptional | String | UUID of the scene to remove |
Example message
{
"op": 6,
"d": {
"requestType": "RemoveScene",
"requestId": "1",
"requestData": {}
}
}SetSceneNamerequestscenesSets the name of a scene (rename).
Sets the name of a scene (rename).
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene to be renamed |
sceneUuidoptional | String | UUID of the scene to be renamed |
newSceneName | String | New name for the scene |
Example message
{
"op": 6,
"d": {
"requestType": "SetSceneName",
"requestId": "1",
"requestData": {
"newSceneName": ""
}
}
}GetSceneSceneTransitionOverriderequestscenesGets the scene transition overridden for a scene.
Gets the scene transition overridden for a scene.
Note: A transition UUID response field is not currently able to be implemented as of 2024-1-18.
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene |
sceneUuidoptional | String | UUID of the scene |
Response fields
transitionName | String | Name of the overridden scene transition, else null |
transitionDuration | Number | Duration of the overridden scene transition, else null |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneSceneTransitionOverride",
"requestId": "1",
"requestData": {}
}
}SetSceneSceneTransitionOverriderequestscenesSets the scene transition overridden for a scene.
Sets the scene transition overridden for a scene.
Request fields
canvasUuidoptional | String | UUID of the canvas the scene is in, if using the sceneName field |
sceneNameoptional | String | Name of the scene |
sceneUuidoptional | String | UUID of the scene |
transitionNameoptional | String | Name of the scene transition to use as override. Specify null to remove |
transitionDurationoptional | Number | Duration to use for any overridden transition. Specify null to remove>= 50, <= 20000 |
Example message
{
"op": 6,
"d": {
"requestType": "SetSceneSceneTransitionOverride",
"requestId": "1",
"requestData": {}
}
}GetSourceActiverequestsourcesGets the active and show state of a source.
Gets the active and show state of a source.
**Compatible with inputs and scenes.**
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using sourceName field |
sourceNameoptional | String | Name of the source to get the active state of |
sourceUuidoptional | String | UUID of the source to get the active state of |
Response fields
videoActive | Boolean | Whether the source is showing in Program |
videoShowing | Boolean | Whether the source is showing in the UI (Preview, Projector, Properties) |
Example message
{
"op": 6,
"d": {
"requestType": "GetSourceActive",
"requestId": "1",
"requestData": {}
}
}GetSourceScreenshotrequestsourcesGets a Base64-encoded screenshot of a source.
Gets a Base64-encoded screenshot of a source.
The imageWidth and imageHeight parameters are treated as "scale to inner", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.
If imageWidth and imageHeight are not specified, the compressed image will use the full resolution of the source.
**Compatible with inputs and scenes.**
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using sourceName field |
sourceNameoptional | String | Name of the source to take a screenshot of |
sourceUuidoptional | String | UUID of the source to take a screenshot of |
imageFormat | String | Image compression format to use. Use GetVersion to get compatible image formats |
imageWidthoptional | Number | Width to scale the screenshot to >= 8, <= 4096 |
imageHeightoptional | Number | Height to scale the screenshot to >= 8, <= 4096 |
imageCompressionQualityoptional | Number | Compression quality to use. 0 for high compression, 100 for uncompressed. -1 to use "default" (whatever that means, idk) >= -1, <= 100 |
Response fields
imageData | String | Base64-encoded screenshot |
Example message
{
"op": 6,
"d": {
"requestType": "GetSourceScreenshot",
"requestId": "1",
"requestData": {
"imageFormat": ""
}
}
}SaveSourceScreenshotrequestsourcesSaves a screenshot of a source to the filesystem.
Saves a screenshot of a source to the filesystem.
The imageWidth and imageHeight parameters are treated as "scale to inner", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.
If imageWidth and imageHeight are not specified, the compressed image will use the full resolution of the source.
**Compatible with inputs and scenes.**
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using sourceName field |
sourceNameoptional | String | Name of the source to take a screenshot of |
sourceUuidoptional | String | UUID of the source to take a screenshot of |
imageFormat | String | Image compression format to use. Use GetVersion to get compatible image formats |
imageFilePath | String | Path to save the screenshot file to. Eg. C:\Users\user\Desktop\screenshot.png |
imageWidthoptional | Number | Width to scale the screenshot to >= 8, <= 4096 |
imageHeightoptional | Number | Height to scale the screenshot to >= 8, <= 4096 |
imageCompressionQualityoptional | Number | Compression quality to use. 0 for high compression, 100 for uncompressed. -1 to use "default" (whatever that means, idk) >= -1, <= 100 |
Example message
{
"op": 6,
"d": {
"requestType": "SaveSourceScreenshot",
"requestId": "1",
"requestData": {
"imageFormat": "",
"imageFilePath": ""
}
}
}GetStreamStatusrequeststreamGets the status of the stream output.
Gets the status of the stream output.
Response fields
outputActive | Boolean | Whether the output is active |
outputReconnecting | Boolean | Whether the output is currently reconnecting |
outputTimecode | String | Current formatted timecode string for the output |
outputDuration | Number | Current duration in milliseconds for the output |
outputCongestion | Number | Congestion of the output |
outputBytes | Number | Number of bytes sent by the output |
outputSkippedFrames | Number | Number of frames skipped by the output's process |
outputTotalFrames | Number | Total number of frames delivered by the output's process |
Example message
{
"op": 6,
"d": {
"requestType": "GetStreamStatus",
"requestId": "1"
}
}ToggleStreamrequeststreamToggles the status of the stream output.
Toggles the status of the stream output.
Response fields
outputActive | Boolean | New state of the stream output |
Example message
{
"op": 6,
"d": {
"requestType": "ToggleStream",
"requestId": "1"
}
}StartStreamrequeststreamStarts the stream output.
Starts the stream output.
Example message
{
"op": 6,
"d": {
"requestType": "StartStream",
"requestId": "1"
}
}StopStreamrequeststreamStops the stream output.
Stops the stream output.
Example message
{
"op": 6,
"d": {
"requestType": "StopStream",
"requestId": "1"
}
}SendStreamCaptionrequeststreamSends CEA-608 caption text over the stream output.
Sends CEA-608 caption text over the stream output.
Request fields
captionText | String | Caption text |
Example message
{
"op": 6,
"d": {
"requestType": "SendStreamCaption",
"requestId": "1",
"requestData": {
"captionText": ""
}
}
}GetTransitionKindListrequesttransitionsGets an array of all available transition kinds.
Gets an array of all available transition kinds.
Similar to GetInputKindList
Response fields
transitionKinds | Array<String> | Array of transition kinds |
Example message
{
"op": 6,
"d": {
"requestType": "GetTransitionKindList",
"requestId": "1"
}
}GetSceneTransitionListrequesttransitionsGets an array of all scene transitions in OBS.
Gets an array of all scene transitions in OBS.
Response fields
currentSceneTransitionName | String | Name of the current scene transition. Can be null |
currentSceneTransitionUuid | String | UUID of the current scene transition. Can be null |
currentSceneTransitionKind | String | Kind of the current scene transition. Can be null |
transitions | Array<Object> | Array of transitions |
Example message
{
"op": 6,
"d": {
"requestType": "GetSceneTransitionList",
"requestId": "1"
}
}GetCurrentSceneTransitionrequesttransitionsGets information about the current scene transition.
Gets information about the current scene transition.
Response fields
transitionName | String | Name of the transition |
transitionUuid | String | UUID of the transition |
transitionKind | String | Kind of the transition |
transitionFixed | Boolean | Whether the transition uses a fixed (unconfigurable) duration |
transitionDuration | Number | Configured transition duration in milliseconds. null if transition is fixed |
transitionConfigurable | Boolean | Whether the transition supports being configured |
transitionSettings | Object | Object of settings for the transition. null if transition is not configurable |
Example message
{
"op": 6,
"d": {
"requestType": "GetCurrentSceneTransition",
"requestId": "1"
}
}SetCurrentSceneTransitionrequesttransitionsSets the current scene transition.
Sets the current scene transition.
Small note: While the namespace of scene transitions is generally unique, that uniqueness is not a guarantee as it is with other resources like inputs.
Request fields
transitionName | String | Name of the transition to make active |
Example message
{
"op": 6,
"d": {
"requestType": "SetCurrentSceneTransition",
"requestId": "1",
"requestData": {
"transitionName": ""
}
}
}SetCurrentSceneTransitionDurationrequesttransitionsSets the duration of the current scene transition, if it is not fixed.
Sets the duration of the current scene transition, if it is not fixed.
Request fields
transitionDuration | Number | Duration in milliseconds >= 50, <= 20000 |
Example message
{
"op": 6,
"d": {
"requestType": "SetCurrentSceneTransitionDuration",
"requestId": "1",
"requestData": {
"transitionDuration": 0
}
}
}SetCurrentSceneTransitionSettingsrequesttransitionsSets the settings of the current scene transition.
Sets the settings of the current scene transition.
Request fields
transitionSettings | Object | Settings object to apply to the transition. Can be {} |
overlayoptional | Boolean | Whether to overlay over the current settings or replace them |
Example message
{
"op": 6,
"d": {
"requestType": "SetCurrentSceneTransitionSettings",
"requestId": "1",
"requestData": {
"transitionSettings": {}
}
}
}GetCurrentSceneTransitionCursorrequesttransitionsGets the cursor position of the current scene transition.
Gets the cursor position of the current scene transition.
Note: transitionCursor will return 1.0 when the transition is inactive.
Response fields
transitionCursor | Number | Cursor position, between 0.0 and 1.0 |
Example message
{
"op": 6,
"d": {
"requestType": "GetCurrentSceneTransitionCursor",
"requestId": "1"
}
}TriggerStudioModeTransitionrequesttransitionsTriggers the current scene transition.
Triggers the current scene transition. Same functionality as the Transition button in studio mode.
Example message
{
"op": 6,
"d": {
"requestType": "TriggerStudioModeTransition",
"requestId": "1"
}
}SetTBarPositionrequesttransitionsSets the position of the TBar.
Sets the position of the TBar.
**Very important note**: This will be deprecated and replaced in a future version of obs-websocket.
Request fields
position | Number | New position >= 0.0, <= 1.0 |
releaseoptional | Boolean | Whether to release the TBar. Only set false if you know that you will be sending another position update |
Example message
{
"op": 6,
"d": {
"requestType": "SetTBarPosition",
"requestId": "1",
"requestData": {
"position": 0
}
}
}GetStudioModeEnabledrequestuiGets whether studio is enabled.
Gets whether studio is enabled.
Response fields
studioModeEnabled | Boolean | Whether studio mode is enabled |
Example message
{
"op": 6,
"d": {
"requestType": "GetStudioModeEnabled",
"requestId": "1"
}
}SetStudioModeEnabledrequestuiEnables or disables studio mode
Enables or disables studio mode
Request fields
studioModeEnabled | Boolean | True == Enabled, False == Disabled |
Example message
{
"op": 6,
"d": {
"requestType": "SetStudioModeEnabled",
"requestId": "1",
"requestData": {
"studioModeEnabled": true
}
}
}OpenInputPropertiesDialogrequestuiOpens the properties dialog of an input.
Opens the properties dialog of an input.
Request fields
inputNameoptional | String | Name of the input to open the dialog of |
inputUuidoptional | String | UUID of the input to open the dialog of |
Example message
{
"op": 6,
"d": {
"requestType": "OpenInputPropertiesDialog",
"requestId": "1",
"requestData": {}
}
}OpenInputFiltersDialogrequestuiOpens the filters dialog of an input.
Opens the filters dialog of an input.
Request fields
inputNameoptional | String | Name of the input to open the dialog of |
inputUuidoptional | String | UUID of the input to open the dialog of |
Example message
{
"op": 6,
"d": {
"requestType": "OpenInputFiltersDialog",
"requestId": "1",
"requestData": {}
}
}OpenInputInteractDialogrequestuiOpens the interact dialog of an input.
Opens the interact dialog of an input.
Request fields
inputNameoptional | String | Name of the input to open the dialog of |
inputUuidoptional | String | UUID of the input to open the dialog of |
Example message
{
"op": 6,
"d": {
"requestType": "OpenInputInteractDialog",
"requestId": "1",
"requestData": {}
}
}GetMonitorListrequestuiGets a list of connected monitors and information about them.
Gets a list of connected monitors and information about them.
Response fields
monitors | Array<Object> | a list of detected monitors with some information |
Example message
{
"op": 6,
"d": {
"requestType": "GetMonitorList",
"requestId": "1"
}
}OpenVideoMixProjectorrequestuiOpens a projector for a specific output video mix.
Opens a projector for a specific output video mix.
Mix types:
- OBS_WEBSOCKET_VIDEO_MIX_TYPE_PREVIEW
- OBS_WEBSOCKET_VIDEO_MIX_TYPE_PROGRAM
- OBS_WEBSOCKET_VIDEO_MIX_TYPE_MULTIVIEW
Note: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.
Request fields
videoMixType | String | Type of mix to open |
monitorIndexoptional | Number | Monitor index, use GetMonitorList to obtain index |
projectorGeometryoptional | String | Size/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with monitorIndex |
Example message
{
"op": 6,
"d": {
"requestType": "OpenVideoMixProjector",
"requestId": "1",
"requestData": {
"videoMixType": ""
}
}
}OpenSourceProjectorrequestuiOpens a projector for a source.
Opens a projector for a source.
Note: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.
Request fields
canvasUuidoptional | String | UUID of the canvas the source is in, if using the sourceName field |
sourceNameoptional | String | Name of the source to open a projector for |
sourceUuidoptional | String | UUID of the source to open a projector for |
monitorIndexoptional | Number | Monitor index, use GetMonitorList to obtain index |
projectorGeometryoptional | String | Size/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with monitorIndex |
Example message
{
"op": 6,
"d": {
"requestType": "OpenSourceProjector",
"requestId": "1",
"requestData": {}
}
}CanvasCreatedeventcanvasesA new canvas has been created.
A new canvas has been created.
Data fields
canvasName | String | Name of the new canvas |
canvasUuid | String | UUID of the new canvas |
CanvasRemovedeventcanvasesA canvas has been removed.
A canvas has been removed.
Data fields
canvasName | String | Name of the removed canvas |
canvasUuid | String | UUID of the removed canvas |
CanvasNameChangedeventcanvasesThe name of a canvas has changed.
The name of a canvas has changed.
Data fields
canvasUuid | String | UUID of the canvas |
oldCanvasName | String | Old name of the canvas |
canvasName | String | New name of the canvas |
CurrentSceneCollectionChangingeventconfigThe current scene collection has begun changing.
The current scene collection has begun changing.
Note: We recommend using this event to trigger a pause of all polling requests, as performing any requests during a
scene collection change is considered undefined behavior and can cause crashes!
Data fields
sceneCollectionName | String | Name of the current scene collection |
CurrentSceneCollectionChangedeventconfigThe current scene collection has changed.
The current scene collection has changed.
Note: If polling has been paused during CurrentSceneCollectionChanging, this is the que to restart polling.
Data fields
sceneCollectionName | String | Name of the new scene collection |
SceneCollectionListChangedeventconfigThe scene collection list has changed.
The scene collection list has changed.
Data fields
sceneCollections | Array<String> | Updated list of scene collections |
CurrentProfileChangingeventconfigThe current profile has begun changing.
The current profile has begun changing.
Data fields
profileName | String | Name of the current profile |
CurrentProfileChangedeventconfigThe current profile has changed.
The current profile has changed.
Data fields
profileName | String | Name of the new profile |
ProfileListChangedeventconfigThe profile list has changed.
The profile list has changed.
Data fields
profiles | Array<String> | Updated list of profiles |
SourceFilterListReindexedeventfiltersA source's filter list has been reindexed.
A source's filter list has been reindexed.
Data fields
sourceName | String | Name of the source |
filters | Array<Object> | Array of filter objects |
SourceFilterCreatedeventfiltersA filter has been added to a source.
A filter has been added to a source.
Data fields
sourceName | String | Name of the source the filter was added to |
filterName | String | Name of the filter |
filterKind | String | The kind of the filter |
filterIndex | Number | Index position of the filter |
filterSettings | Object | The settings configured to the filter when it was created |
defaultFilterSettings | Object | The default settings for the filter |
SourceFilterRemovedeventfiltersA filter has been removed from a source.
A filter has been removed from a source.
Data fields
sourceName | String | Name of the source the filter was on |
filterName | String | Name of the filter |
SourceFilterNameChangedeventfiltersThe name of a source filter has changed.
The name of a source filter has changed.
Data fields
sourceName | String | The source the filter is on |
oldFilterName | String | Old name of the filter |
filterName | String | New name of the filter |
SourceFilterSettingsChangedeventfiltersAn source filter's settings have changed (been updated).
An source filter's settings have changed (been updated).
Data fields
sourceName | String | Name of the source the filter is on |
filterName | String | Name of the filter |
filterSettings | Object | New settings object of the filter |
SourceFilterEnableStateChangedeventfiltersA source filter's enable state has changed.
A source filter's enable state has changed.
Data fields
sourceName | String | Name of the source the filter is on |
filterName | String | Name of the filter |
filterEnabled | Boolean | Whether the filter is enabled |
ExitStartedeventgeneralOBS has begun the shutdown process.
OBS has begun the shutdown process.
InputCreatedeventinputsAn input has been created.
An input has been created.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
inputKind | String | The kind of the input |
unversionedInputKind | String | The unversioned kind of input (aka no _v2 stuff) |
inputKindCaps | Number | Bitflag value for the caps that an input supports. See obs_source_info.output_flags in the libobs docs |
inputSettings | Object | The settings configured to the input when it was created |
defaultInputSettings | Object | The default settings for the input |
InputRemovedeventinputsAn input has been removed.
An input has been removed.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
InputNameChangedeventinputsThe name of an input has changed.
The name of an input has changed.
Data fields
inputUuid | String | UUID of the input |
oldInputName | String | Old name of the input |
inputName | String | New name of the input |
InputSettingsChangedeventinputsAn input's settings have changed (been updated).
An input's settings have changed (been updated).
Note: On some inputs, changing values in the properties dialog will cause an immediate update. Pressing the "Cancel" button will revert the settings, resulting in another event being fired.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
inputSettings | Object | New settings object of the input |
InputActiveStateChangedeventinputsAn input's active state has changed.
An input's active state has changed.
When an input is active, it means it's being shown by the program feed.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
videoActive | Boolean | Whether the input is active |
InputShowStateChangedeventinputsAn input's show state has changed.
An input's show state has changed.
When an input is showing, it means it's being shown by the preview or a dialog.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
videoShowing | Boolean | Whether the input is showing |
InputMuteStateChangedeventinputsAn input's mute state has changed.
An input's mute state has changed.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
inputMuted | Boolean | Whether the input is muted |
InputVolumeChangedeventinputsAn input's volume level has changed.
An input's volume level has changed.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
inputVolumeMul | Number | New volume level multiplier |
inputVolumeDb | Number | New volume level in dB |
InputAudioBalanceChangedeventinputsThe audio balance value of an input has changed.
The audio balance value of an input has changed.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
inputAudioBalance | Number | New audio balance value of the input |
InputAudioSyncOffsetChangedeventinputsThe sync offset of an input has changed.
The sync offset of an input has changed.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
inputAudioSyncOffset | Number | New sync offset in milliseconds |
InputAudioTracksChangedeventinputsThe audio tracks of an input have changed.
The audio tracks of an input have changed.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
inputAudioTracks | Object | Object of audio tracks along with their associated enable states |
InputAudioMonitorTypeChangedeventinputsThe monitor type of an input has changed.
The monitor type of an input has changed.
Available types are:
- OBS_MONITORING_TYPE_NONE
- OBS_MONITORING_TYPE_MONITOR_ONLY
- OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
monitorType | String | New monitor type of the input |
InputVolumeMeterseventinputsA high-volume event providing volume levels of all active inputs every 50 milliseconds.
A high-volume event providing volume levels of all active inputs every 50 milliseconds.
Data fields
inputs | Array<Object> | Array of active inputs with their associated volume levels |
MediaInputPlaybackStartedeventmedia inputsA media input has started playing.
A media input has started playing.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
MediaInputPlaybackEndedeventmedia inputsA media input has finished playing.
A media input has finished playing.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
MediaInputActionTriggeredeventmedia inputsAn action has been performed on an input.
An action has been performed on an input.
Data fields
inputName | String | Name of the input |
inputUuid | String | UUID of the input |
mediaAction | String | Action performed on the input. See ObsMediaInputAction enum |
StreamStateChangedeventoutputsThe state of the stream output has changed.
The state of the stream output has changed.
Data fields
outputActive | Boolean | Whether the output is active |
outputState | String | The specific state of the output |
RecordStateChangedeventoutputsThe state of the record output has changed.
The state of the record output has changed.
Data fields
outputActive | Boolean | Whether the output is active |
outputState | String | The specific state of the output |
outputPath | String | File name for the saved recording, if record stopped. null otherwise |
RecordFileChangedeventoutputsThe record output has started writing to a new file.
The record output has started writing to a new file. For example, when a file split happens.
Data fields
newOutputPath | String | File name that the output has begun writing to |
ReplayBufferStateChangedeventoutputsThe state of the replay buffer output has changed.
The state of the replay buffer output has changed.
Data fields
outputActive | Boolean | Whether the output is active |
outputState | String | The specific state of the output |
VirtualcamStateChangedeventoutputsThe state of the virtualcam output has changed.
The state of the virtualcam output has changed.
Data fields
outputActive | Boolean | Whether the output is active |
outputState | String | The specific state of the output |
ReplayBufferSavedeventoutputsThe replay buffer has been saved.
The replay buffer has been saved.
Data fields
savedReplayPath | String | Path of the saved replay file |
SceneItemCreatedeventscene itemsA scene item has been created.
A scene item has been created.
Data fields
sceneName | String | Name of the scene the item was added to |
sceneUuid | String | UUID of the scene the item was added to |
sourceName | String | Name of the underlying source (input/scene) |
sourceUuid | String | UUID of the underlying source (input/scene) |
sceneItemId | Number | Numeric ID of the scene item |
sceneItemIndex | Number | Index position of the item |
SceneItemRemovedeventscene itemsA scene item has been removed.
A scene item has been removed.
This event is not emitted when the scene the item is in is removed.
Data fields
sceneName | String | Name of the scene the item was removed from |
sceneUuid | String | UUID of the scene the item was removed from |
sourceName | String | Name of the underlying source (input/scene) |
sourceUuid | String | UUID of the underlying source (input/scene) |
sceneItemId | Number | Numeric ID of the scene item |
SceneItemListReindexedeventscene itemsA scene's item list has been reindexed.
A scene's item list has been reindexed.
Data fields
sceneName | String | Name of the scene |
sceneUuid | String | UUID of the scene |
sceneItems | Array<Object> | Array of scene item objects |
SceneItemEnableStateChangedeventscene itemsA scene item's enable state has changed.
A scene item's enable state has changed.
Data fields
sceneName | String | Name of the scene the item is in |
sceneUuid | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item |
sceneItemEnabled | Boolean | Whether the scene item is enabled (visible) |
SceneItemLockStateChangedeventscene itemsA scene item's lock state has changed.
A scene item's lock state has changed.
Data fields
sceneName | String | Name of the scene the item is in |
sceneUuid | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item |
sceneItemLocked | Boolean | Whether the scene item is locked |
SceneItemSelectedeventscene itemsA scene item has been selected in the Ui.
A scene item has been selected in the Ui.
Data fields
sceneName | String | Name of the scene the item is in |
sceneUuid | String | UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item |
SceneItemTransformChangedeventscene itemsThe transform/crop of a scene item has changed.
The transform/crop of a scene item has changed.
Data fields
sceneName | String | The name of the scene the item is in |
sceneUuid | String | The UUID of the scene the item is in |
sceneItemId | Number | Numeric ID of the scene item |
sceneItemTransform | Object | New transform/crop info of the scene item |
SceneCreatedeventscenesA new scene has been created.
A new scene has been created.
Data fields
sceneName | String | Name of the new scene |
sceneUuid | String | UUID of the new scene |
isGroup | Boolean | Whether the new scene is a group |
SceneRemovedeventscenesA scene has been removed.
A scene has been removed.
Data fields
sceneName | String | Name of the removed scene |
sceneUuid | String | UUID of the removed scene |
isGroup | Boolean | Whether the scene was a group |
SceneNameChangedeventscenesThe name of a scene has changed.
The name of a scene has changed.
Data fields
sceneUuid | String | UUID of the scene |
oldSceneName | String | Old name of the scene |
sceneName | String | New name of the scene |
CurrentProgramSceneChangedeventscenesThe current program scene has changed.
The current program scene has changed.
Data fields
sceneName | String | Name of the scene that was switched to |
sceneUuid | String | UUID of the scene that was switched to |
CurrentPreviewSceneChangedeventscenesThe current preview scene has changed.
The current preview scene has changed.
Data fields
sceneName | String | Name of the scene that was switched to |
sceneUuid | String | UUID of the scene that was switched to |
SceneListChangedeventscenesThe list of scenes has changed.
The list of scenes has changed.
TODO: Make OBS fire this event when scenes are reordered.
Data fields
scenes | Array<Object> | Updated array of scenes |
CurrentSceneTransitionChangedeventtransitionsThe current scene transition has changed.
The current scene transition has changed.
Data fields
transitionName | String | Name of the new transition |
transitionUuid | String | UUID of the new transition |
CurrentSceneTransitionDurationChangedeventtransitionsThe current scene transition duration has changed.
The current scene transition duration has changed.
Data fields
transitionDuration | Number | Transition duration in milliseconds |
SceneTransitionStartedeventtransitionsA scene transition has started.
A scene transition has started.
Data fields
transitionName | String | Scene transition name |
transitionUuid | String | Scene transition UUID |
SceneTransitionEndedeventtransitionsA scene transition has completed fully.
A scene transition has completed fully.
Note: Does not appear to trigger when the transition is interrupted by the user.
Data fields
transitionName | String | Scene transition name |
transitionUuid | String | Scene transition UUID |
SceneTransitionVideoEndedeventtransitionsA scene transition's video has completed fully.
A scene transition's video has completed fully.
Useful for stinger transitions to tell when the video *actually* ends.SceneTransitionEnded only signifies the cut point, not the completion of transition playback.
Note: Appears to be called by every transition, regardless of relevance.
Data fields
transitionName | String | Scene transition name |
transitionUuid | String | Scene transition UUID |
StudioModeStateChangedeventuiStudio mode has been enabled or disabled.
Studio mode has been enabled or disabled.
Data fields
studioModeEnabled | Boolean | True == Enabled, False == Disabled |
ScreenshotSavedeventuiA screenshot has been saved.
A screenshot has been saved.
Note: Triggered for the screenshot feature available in Settings -> Hotkeys -> Screenshot Output ONLY.
Applications using Get/SaveSourceScreenshot should implement a CustomEvent if this kind of inter-client
communication is desired.
Data fields
savedScreenshotPath | String | Path of the saved image file |
VendorEventeventgeneralAn event has been emitted from a vendor.
An event has been emitted from a vendor.
A vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.
If a plugin or script implements vendor requests or events, documentation is expected to be provided with them.
Data fields
vendorName | String | Name of the vendor emitting the event |
eventType | String | Vendor-provided event typedef |
eventData | Object | Vendor-provided event data. {} if event does not provide any data |
CustomEventeventgeneralfor every client, a client got the usage since any client's call.
for every client, a client got the usage since any client's call. */
Custom event emitted by BroadcastCustomEvent.
Data fields
eventData | Object | Custom event data |
EventSubscriptionenum18 values: None, General, Config, Scenes, …
None | 0 | Subcription value used to disable all events. |
General | (1 << 0) | Subscription value to receive events in the General category. |
Config | (1 << 1) | Subscription value to receive events in the Config category. |
Scenes | (1 << 2) | Subscription value to receive events in the Scenes category. |
Inputs | (1 << 3) | Subscription value to receive events in the Inputs category. |
Transitions | (1 << 4) | Subscription value to receive events in the Transitions category. |
Filters | (1 << 5) | Subscription value to receive events in the Filters category. |
Outputs | (1 << 6) | Subscription value to receive events in the Outputs category. |
SceneItems | (1 << 7) | Subscription value to receive events in the SceneItems category. |
MediaInputs | (1 << 8) | Subscription value to receive events in the MediaInputs category. |
Vendors | (1 << 9) | Subscription value to receive the VendorEvent event. |
Ui | (1 << 10) | Subscription value to receive events in the Ui category. |
Canvases | (1 << 11) | Subscription value to receive events in the Canvases category. |
All | (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors | Ui | Canvases) | Helper to receive all non-high-volume events. |
InputVolumeMeters | (1 << 16) | Subscription value to receive the InputVolumeMeters high-volume event. |
InputActiveStateChanged | (1 << 17) | Subscription value to receive the InputActiveStateChanged high-volume event. |
InputShowStateChanged | (1 << 18) | Subscription value to receive the InputShowStateChanged high-volume event. |
SceneItemTransformChanged | (1 << 19) | Subscription value to receive the SceneItemTransformChanged high-volume event. |
RequestBatchExecutionTypeenum4 values: None, SerialRealtime, SerialFrame, Parallel
None | -1 | Not a request batch. |
SerialRealtime | 0 | A request batch which processes all requests serially, as fast as possible. Note: To introduce artificial delay, use the Sleep request and the sleepMillis request field. |
SerialFrame | 1 | A request batch type which processes all requests serially, in sync with the graphics thread. Designed to provide high accuracy for animations. Note: To introduce artificial delay, use the Sleep request and the sleepFrames request field. |
Parallel | 2 | A request batch type which processes all requests using all available threads in the thread pool. Note: This is mainly experimental, and only really shows its colors during requests which require lots of active processing, like GetSourceScreenshot. |
RequestStatusenum34 values: Unknown, NoError, Success, MissingRequestType, …
Unknown | 0 | Unknown status, should never be used. |
NoError | 10 | For internal use to signify a successful field check. |
Success | 100 | The request has succeeded. |
MissingRequestType | 203 | The requestType field is missing from the request data. |
UnknownRequestType | 204 | The request type is invalid or does not exist. |
GenericError | 205 | Generic error code. Note: A comment is required to be provided by obs-websocket. |
UnsupportedRequestBatchExecutionType | 206 | The request batch execution type is not supported. |
NotReady | 207 | The server is not ready to handle the request. Note: This usually occurs during OBS scene collection change or exit. Requests may be tried again after a delay if this code is given. |
MissingRequestField | 300 | A required request field is missing. |
MissingRequestData | 301 | The request does not have a valid requestData object. |
InvalidRequestField | 400 | Generic invalid request field message. Note: A comment is required to be provided by obs-websocket. |
InvalidRequestFieldType | 401 | A request field has the wrong data type. |
RequestFieldOutOfRange | 402 | A request field (number) is outside of the allowed range. |
RequestFieldEmpty | 403 | A request field (string or array) is empty and cannot be. |
TooManyRequestFields | 404 | There are too many request fields (eg. a request takes two optionals, where only one is allowed at a time). |
OutputRunning | 500 | An output is running and cannot be in order to perform the request. |
OutputNotRunning | 501 | An output is not running and should be. |
OutputPaused | 502 | An output is paused and should not be. |
OutputNotPaused | 503 | An output is not paused and should be. |
OutputDisabled | 504 | An output is disabled and should not be. |
StudioModeActive | 505 | Studio mode is active and cannot be. |
StudioModeNotActive | 506 | Studio mode is not active and should be. |
ResourceNotFound | 600 | The resource was not found. Note: Resources are any kind of object in obs-websocket, like inputs, profiles, outputs, etc. |
ResourceAlreadyExists | 601 | The resource already exists. |
InvalidResourceType | 602 | The type of resource found is invalid. |
NotEnoughResources | 603 | There are not enough instances of the resource in order to perform the request. |
InvalidResourceState | 604 | The state of the resource is invalid. For example, if the resource is blocked from being accessed. |
InvalidInputKind | 605 | The specified input (obs_source_t-OBS_SOURCE_TYPE_INPUT) had the wrong kind. |
ResourceNotConfigurable | 606 | The resource does not support being configured. This is particularly relevant to transitions, where they do not always have changeable settings. |
InvalidFilterKind | 607 | The specified filter (obs_source_t-OBS_SOURCE_TYPE_FILTER) had the wrong kind. |
ResourceCreationFailed | 700 | Creating the resource failed. |
ResourceActionFailed | 701 | Performing an action on the resource failed. |
RequestProcessingFailed | 702 | Processing the request failed unexpectedly. Note: A comment is required to be provided by obs-websocket. |
CannotAct | 703 | The combination of request fields cannot be used to perform an action. |
ObsOutputStateenum9 values: OBS_WEBSOCKET_OUTPUT_UNKNOWN, OBS_WEBSOCKET_OUTPUT_STARTING, OBS_WEBSOCKET_OUTPUT_STARTED, OBS_WEBSOCKET_OUTPUT_STOPPING, …
OBS_WEBSOCKET_OUTPUT_UNKNOWN | OBS_WEBSOCKET_OUTPUT_UNKNOWN | Unknown state. |
OBS_WEBSOCKET_OUTPUT_STARTING | OBS_WEBSOCKET_OUTPUT_STARTING | The output is starting. |
OBS_WEBSOCKET_OUTPUT_STARTED | OBS_WEBSOCKET_OUTPUT_STARTED | The input has started. |
OBS_WEBSOCKET_OUTPUT_STOPPING | OBS_WEBSOCKET_OUTPUT_STOPPING | The output is stopping. |
OBS_WEBSOCKET_OUTPUT_STOPPED | OBS_WEBSOCKET_OUTPUT_STOPPED | The output has stopped. |
OBS_WEBSOCKET_OUTPUT_RECONNECTING | OBS_WEBSOCKET_OUTPUT_RECONNECTING | The output has disconnected and is reconnecting. |
OBS_WEBSOCKET_OUTPUT_RECONNECTED | OBS_WEBSOCKET_OUTPUT_RECONNECTED | The output has reconnected successfully. |
OBS_WEBSOCKET_OUTPUT_PAUSED | OBS_WEBSOCKET_OUTPUT_PAUSED | The output is now paused. |
OBS_WEBSOCKET_OUTPUT_RESUMED | OBS_WEBSOCKET_OUTPUT_RESUMED | The output has been resumed (unpaused). |
ObsMediaInputActionenum7 values: OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE, OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY, OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE, OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP, …
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE | OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE | No action. |
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY | OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY | Play the media input. |
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE | OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE | Pause the media input. |
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP | OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP | Stop the media input. |
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART | OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART | Restart the media input. |
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXT | OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXT | Go to the next playlist item. |
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUS | OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUS | Go to the previous playlist item. |
WebSocketCloseCodeenum13 values: DontClose, UnknownReason, MessageDecodeError, MissingDataField, …
DontClose | 0 | For internal use only to tell the request handler not to perform any close action. |
UnknownReason | 4000 | Unknown reason, should never be used. |
MessageDecodeError | 4002 | The server was unable to decode the incoming websocket message. |
MissingDataField | 4003 | A data field is required but missing from the payload. |
InvalidDataFieldType | 4004 | A data field's value type is invalid. |
InvalidDataFieldValue | 4005 | A data field's value is invalid. |
UnknownOpCode | 4006 | The specified op was invalid or missing. |
NotIdentified | 4007 | The client sent a websocket message without first sending Identify message. |
AlreadyIdentified | 4008 | The client sent an Identify message while already identified.Note: Once a client has identified, only Reidentify may be used to change session parameters. |
AuthenticationFailed | 4009 | The authentication attempt (via Identify) failed. |
UnsupportedRpcVersion | 4010 | The server detected the usage of an old version of the obs-websocket RPC protocol. |
SessionInvalidated | 4011 | The websocket session has been invalidated by the obs-websocket server. Note: This is the code used by the Kick button in the UI Session List. If you receive this code, you must not automatically reconnect. |
UnsupportedFeature | 4012 | A requested feature is not supported due to hardware/software limitations. |
WebSocketOpCodeenum9 values: Hello, Identify, Identified, Reidentify, …
Hello | 0 | The initial message sent by obs-websocket to newly connected clients. |
Identify | 1 | The message sent by a newly connected client to obs-websocket in response to a Hello. |
Identified | 2 | The response sent by obs-websocket to a client after it has successfully identified with obs-websocket. |
Reidentify | 3 | The message sent by an already-identified client to update identification parameters. |
Event | 5 | The message sent by obs-websocket containing an event payload. |
Request | 6 | The message sent by a client to obs-websocket to perform a request. |
RequestResponse | 7 | The message sent by obs-websocket in response to a particular request from a client. |
RequestBatch | 8 | The message sent by a client to obs-websocket to perform a batch of requests. |
RequestBatchResponse | 9 | The message sent by obs-websocket in response to a particular batch of requests from a client. |