Change Web Camera configuration

1. API Description

This API is used to change the configuration of Web Camera video source.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/input/set-webcam-config
  • V2.5.0 and below: POST [ip]/mwapi/set-webcam-config
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
width Yes Int Video width, in px
height Yes Int Video height, in px
fps Yes Int Frame rate (fps X 100)
fourcc Yes String Format
out-mirror Yes Boolean Whether to enable the mirror effect
true: Yes; false: No

4. Example

Changing the configuration of Web Camera video source.

Input Example
{
  "fourcc": "MJPG",
  "width": 1920,
  "height": 1080,
  "fps": 6000,
  "out-mirror": true
}
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 Data not initialized, system error

results matching ""

    No results matching ""