# updateVideoCapturerPreset

Version: 4.2.0+

Description: update the specified video capture device preset.

Request example:

{
    "method": "updateVideoCapturerPreset",
    "requestId" : "1",
    "videoCapturerName": "USB Video Device",
    "isMuted": false,
    "comPort": "",
    "pan": {
        "isPresent": false
    },
    "tilt": {
        "isPresent": true,
        "value": 777
    },
    "zoom": {
        "isPresent": true,
        "value": 999
    },
    "preview": {
        "isPresent": true,
        "value": "base64ImageSource"
    },
    "presetId": "1667478300422"
}

Response example:

{
    "method": "updateVideoCapturerPreset",
    "requestId" : "1",
    "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: