# addVideoCapturerPreset

Version: 4.2.0+

Description: add a video capture device preset with the specified parameters.

Request example:

{
    "method": "addVideoCapturerPreset",
    "requestId" : "1",
    "videoCapturerName": "USB Video Device",
    "isMuted": false,
    "comPort": "",
    "pan": {
        "isPresent": false
    },
    "tilt": {
        "isPresent": true,
        "value": 666
    },
    "zoom": {
        "isPresent": true,
        "value": 666
    },
    "preview": {
        "isPresent": true,
        "value": "base64ImageSource"
    }
}

Response example:

{
    "method": "addVideoCapturerPreset",
    "requestId" : "1",
    "presetId": "1667483891701",
    "result": true
}

Parameter description:

  • presetId - identifier of the created preset
  • isMuted — the flag indicating if the video capture device is turned on or off
  • comPort - the selected COM port for controlling the PTZ camera. If set to an empty string, the COM port will not be used.
  • pan - the pan property of the video capture device
  • tilt - video capture device tilt property
  • zoom - zoom property of the video capture device
  • preview - preview of the preset. If the isPresent field is present, the value field should contain the source of the JPEG image in BASE64 format.
  • videoCapturerName - unique name of the video capture device
  • isPresent - a flag indicating the presence of a property in the preset
  • value - property values. The field must be present if isPresent is equal to true
  • requestId - a unique request identifier. You can learn more about it here.

See also: