1. Home
  2. Integrations
  3. OSC

Integration

runofsho and OSC

QLab, TouchOSC and most lighting desks already speak OSC. A small bridge on the venue network turns each message into a runofsho command, so a cue on the desk can start the next timer.

Updated
SHORT ANSWER

Browsers cannot receive OSC, so runofsho uses a small bridge program, runofsho-osc.js, that listens for OSC over UDP on the venue network and reports each message to the room. Out of the box a room answers addresses such as /runofsho/next, /runofsho/toggle and /runofsho/add-time 30. The bridge needs Node.js 18 or newer and an API key with the operate scope. It is not published as a download yet; any tool that can send an HTTP request can report the same inputs directly.

ON THIS PAGE
  1. Run the bridge
  2. Addresses
  3. Examples
  4. Without the bridge
  5. Validation status
  6. FAQ

OSC (Open Sound Control) travels over UDP on the local network. Web pages cannot listen for it, so runofsho uses a bridge: a single program on any computer on the show network that receives OSC and passes each message to the room through the public API.

Run the bridge

  1. Create an API key in Menu → API keys that may Operate, limited to the room.
  2. On a computer on the show network with Node.js 18 or newer, run:
RUNOFSHO_KEY=rd_live_… node runofsho-osc.js --room rm_… --port 8000
  1. Point QLab, TouchOSC or the desk at that computer's IP address on port 8000.
  2. Send /runofsho/toggle. The bridge prints each message and the action it ran, or no binding if the room has nothing for that address.

The bridge has no dependencies to install. It sends the key in the Authorization header. --host sets the network address it listens on (all of them by default), and --api points it at another API address.

The bridge is not published as a download yet. If you want to try it before it is, write to support@runofsho.com.

Addresses

Out of the box a room answers these:

Address Does
/runofsho/start, /runofsho/stop, /runofsho/toggle Start, pause, or switch between them
/runofsho/next, /runofsho/previous, /runofsho/reset Move through the rundown, reset the timer
/runofsho/add-time <seconds>, /runofsho/subtract-time <seconds> Adjust the running timer, 60 seconds without an argument
/runofsho/flash Flash the screens
/runofsho/blackout [0 or 1], /runofsho/on-air [0 or 1] Set, or toggle without an argument
/runofsho/message/hide Take the message down

To add or change an address, edit the map on Menu → Hardware controls, or replace it with PUT /v1/rooms/{roomId}/controls. An address with no binding does nothing.

Examples

  • QLab. Add a Network cue with an OSC message to the bridge's address and port, /runofsho/next, and place it with the cue that starts the next segment. The stage timer then moves when the show moves.
  • TouchOSC. Make buttons that send /runofsho/toggle, /runofsho/next and /runofsho/add-time 30 for a tablet at the stage manager's desk.
  • Lighting desk. Fire /runofsho/blackout 1 from the cue that takes the stage to black, and /runofsho/blackout 0 from the one that brings it back.

Without the bridge

The bridge only translates. Anything that can make an HTTP request can report the same input itself:

curl -X POST https://api.runofsho.com/v1/rooms/rm_…/controls/trigger \
  -H "Authorization: Bearer rd_live_…" -H "Content-Type: application/json" \
  -d '{"source":"osc","input":"/runofsho/next"}'

The answer says whether the input matched a binding and what it did. For more on sending commands safely, see controlling playback from code.

Each message is one API request. On the Free plan a key may make 60 requests a minute, which is plenty for cues but not for a fader streaming values. Pro allows 600.

Validation status

Implemented, not yet validated against every physical device. The bridge's OSC parser and the control map it reports to are covered by runofsho's API test suite. It has not yet been tested against every OSC sender, desk and network. Send each address in a rehearsal and watch the bridge's output to confirm what arrived.

FAQ

Can QLab control runofsho?

Yes, through OSC. Run the bridge on the show network and send /runofsho/next or another address from a QLab Network cue. QLab can also make the HTTP request through a script cue if you prefer not to run the bridge.

Why does the bridge print no binding?

The room has no action for that address. Check the spelling, including the /runofsho/ prefix, or add the address on the Hardware controls page.

Does the bridge have to run on the show computer?

No. It can run on any computer on the same network as the OSC sender, as long as that computer can reach the internet and the sender can reach its UDP port.

Can runofsho send OSC out?

No. runofsho receives OSC through the bridge but does not send OSC. To react to runofsho events, use webhooks or the real-time API described in the developer guides.

See what each address will do.

Open the sample room and run the timer from the controller. OSC sends the same commands. No account needed.

Try a sample room