Set auto switch

1. API Description

This API is used to set auto switch policy when a signal is connected to the device.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/general/set-auto-switch-settings
  • V2.4.14 to V2.5.0: POST [ip]/mwapi/set-auto-switch-settings
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
autoSwitchType Yes Int Auto switch policy
0: Disable
2: Auto switch to a higher priority signal
3: Auto switch to new signal
autoSwitchSequence No Int Signal priority order, only valid when autoSwitchType is set to 2
1: HDMI 1; 2: HDMI 2; 3: WEBCAM; 31: Screencast

3. Output Parameters

Name Type Description
status Int Status code

4. Example

Setting to auto switch to a higher priority signal.

Input Example
{
    "autoSwitchType":2,
    "autoSwitchSequence":[
        31,
        1,
        2,
        3
    ]
}
Output Example
{
  "status": 0,
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
49 MW_STATUS_INVALID_DATA The parameters are missing or incorrect

results matching ""

    No results matching ""