# updatePresetFromCurrentVideoCapturer

Version: 4.2.0+

Description: update the specified video capture device preset.

The properties for the preset will be set from the properties of the current video capture device.

Request example:

{
    "method": "updatePresetFromCurrentVideoCapturer",
    "requestId" : "1",
    "presetId": "1667478300422"
}

Response example:

{
    "method": "updatePresetFromCurrentVideoCapturer",
    "requestId" : "1",
    "videoCapturerName": "USB Video Device",
    "presetId": "1667478300422",
    "comPort": "",
    "pan": {
        "isPresent": true,
        "value": 9
    },
    "tilt": {
        "isPresent": true,
        "value": -9
    },
    "zoom": {
        "isPresent": true,
        "value": 5
    },
    "preview": {
        "isPresent": true
    },
    "result": true
}

Parameter description:

  • presetId - identifier of the preset whose property values need to be updated
  • comPort - the selected COM port for controlling the PTZ camera. If the COM port is not in use, the field will contain an empty string.
  • pan - the pan property of the video capture device
  • tilt - video capture device tilt property
  • zoom - zoom property of the video capture device
  • preview - preset preview
  • 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 is absent if isPresent equals false
  • requestId - a unique request identifier. You can learn more about it here.

See also: