Enable/Disable screencast protocols
1. API Description
This API is used to enable or disable screencast protocols.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/input/set-projection-screen-config
- V2.5.0 and below: POST [ip]/mwapi/set-projection-screen-config
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
airPlayEnable | No | Int | Allow Apple or other devices supporting AirPlay to cast. 1: Allow; 0: Not allow |
miracastEnable | No | Int | Allow Windows or Android devices supporting Miracast to cast. 1: Allow; 0: Not allow |
googleCastEnable | No | Int | Allow software or devices supporting Google Cast to cast, such as Chrome Book or Chrome browser. 1: Allow; 0: Not allow |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
4. Example
Enabling AirPlay, and disabling Miracast and Google Cast.
Input Example
{
"airPlayEnable": 1,
"miracastEnable": 0,
"googleCastEnable": 0
}
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 |