Skip to content

OBS State

  • Condition
  • Audio & media
  • Advanced mode

Asks OBS Studio whether it's recording or streaming and which scene is on. Connected is false when OBS isn't running or its WebSocket server is off (then the others are false and empty). It asks over the network, so it's not an Only when item.

In the editor, press Space on the canvas to add a step, then open Conditions > Audio & media, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Address

Text Required

OBS's WebSocket server: OBS 28 and later have it built in (Tools > WebSocket Server Settings), on port 4455.

Starts as: ws://127.0.0.1:4455 Takes ${variables} and expressions Can come from another step's output

Password

Text

The server password from OBS's WebSocket Server Settings. Stored as a password.

Starts as: empty Takes ${variables} and expressions Can come from another step's output Starts as a password

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

OBS State outputs
OutputGivesWhat it is
ConnectedYes or noOBS answered.
RecordingYes or no
StreamingYes or no
SceneTextThe scene that's on now.
ErrorTextWhy OBS didn't answer; empty when it did.

Good to know

  • Fields marked as passwords keep their value in the Windows password vault, never in the macro.

More in Audio & media