set-switch-action
Use the interface to simulate key events of the swap button.
Request Mode
POST http://ip/mwapi/set-switch-action
{
"action": 0,
"location":1,
"sourceCollection":1,
"swap":0
}
Parameter | Description |
---|---|
action | 0~4, corresponding to the buttons on the devices |
location | The scene location PIP 1: top_left, 2: top_right, 3: bottom_left, 4: bottom_right SBS 1: left_most, 2: left_center, 3: center, 4: center_right, 5: right_most |
sourceCollection | The source collection 1: HDMI 1 + HDMI 2 2: HDMI 2 + HDMI 1 3: HDMI 1 + WEBCAM 4: WEBCAM + HDMI 1 5: HDMI 2 + WEBCAM 6: WEBCAM + HDMI 2 |
swap | To swap source positions. When swap is 1, location and sourceCollection is invalid. |
Response Body
{
"status": 0,
}
Name | Description |
---|---|
status | 0 indicates a successful data acquisition. Refer to API Status Codes to find specific description for other values. |
action | Key events (0 - 4) |