OBS WebSocket icon

OBS WebSocket

Control OBS Studio via WebSocket

Media → Get Status

AI-generated

Summary

Retrieve the current status of a specified media source in OBS Studio, including playback state, duration, and position.

Inputs

  • Media Source Name (required) — The name of the media source whose status you want to get

Output shape

a single record containing the media source name, current media state (e.g., playing, paused), total media duration, and current media cursor position.

The output includes fields: sourceName (string), mediaState (string), mediaDuration (number), and mediaCursor (number). The operation connects to OBS via WebSocket, queries the specified media source, and returns the status details without modifying the media playback.

Discussion