External SDK / API
Middle Control exposes a TCP API that lets any external device or software send commands to Middle Control — and read back live camera and gimbal data.
This is useful if you want to:
- Trigger presets, start/stop recording, or control a gimbal from a custom device or script
- Integrate Middle Control into a broadcast automation workflow
- Build a custom control panel (hardware or software) that talks directly to Middle Control
This API used to be documented on port 11581. That port is shared with the Middle Remote (Glue) connection and is refused when Middle Remote is in Direct mode — which is the default on macOS. If your integration was built on 11581, simply change the port to 11584: the commands and the feedback frame are identical. (This External API is a macOS feature. On Windows, use the Companion port 11580 and the Glue / Remote port 11581.)
There is no SDK that communicates directly with APC-R units. All commands go through the Middle Control app running on your computer.
🔌 Connection
Your device or software sends plain-text TCP commands to the computer running Middle Control. Each command is a short string (e.g. CAM3, PRESET1, P500) terminated by a newline character — one command per line.
Host : IP address of the computer running Middle Control
(use 127.0.0.1 if your software runs on the same machine)
Port : 11584
End character : \n (LF or CRLF)
Good to know:
- Commands are case-sensitive — send them exactly as written on this page.
- The API is fire-and-forget: a malformed or unknown command is silently ignored (there is no error reply). Use the live feedback to confirm state.
- When your integration is connected, an External API entry appears in the left sidebar of Middle Control, under Controllers — it stays visible as long as the connection is open.
Quick test from a terminal — select camera 1 and trigger its preset 1:
printf 'CAM1\nPRESET1\n' | nc <MIDDLE_CONTROL_IP> 11584
🎯 Selecting & targeting cameras
Every command on this page acts on a camera ID (1–99). There are two ways to say which one:
- Select a camera with
CAMx— the following commands act on it, and the feedback frame reports it. This changes the selected camera in Middle Control, like clicking it in the sidebar. - Target one command by appending
@Cxat the end — the command goes to cameraxwithout changing the selection.
| Command | Description |
|---|---|
CAM3 | Select camera/gimbal 3 — the commands that follow act on it |
REC_START@C2 | Start recording on camera 2, selection unchanged |
AUTOFOCUS@C5 | Trigger autofocus on camera 5, selection unchanged |
P500@C1 | Send a pan command to camera 1, selection unchanged |
Targeted commands make multi-camera actions easy — send REC_START@C1, REC_START@C2 and REC_START@C3 in rapid succession to start recording on cameras 1, 2 and 3 simultaneously.