# 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 presetisMuted
— the flag indicating if the video capture device is turned on or offcomPort
- 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 devicetilt
- video capture device tilt propertyzoom
- zoom property of the video capture devicepreview
- preview of the preset. If theisPresent
field is present, thevalue
field should contain the source of the JPEG image in BASE64 format.videoCapturerName
- unique name of the video capture deviceisPresent
- a flag indicating the presence of a property in the presetvalue
- property values. The field must be present ifisPresent
is equal totrue
requestId
- a unique request identifier. You can learn more about it here.
See also:
- getPtzControls
- ptzZoomInc
- ptzZoomDec
- ptzUp
- ptzDown
- ptzStop
- ptzRight
- ptzLeft
- setPanPos
- setTiltPos
- setZoomPos
- setPtzDefaults
- updatePresetFromCurrentVideoCapturer
- addPresetFromCurrentVideoCapturer
- addVideoCapturerPreset
- getAllVideoCapturerPresets
- applyVideoCapturerPreset
- removeVideoCapturerPreset
- videoCapturerPresetRemoved
- videoCapturerPresetAdded
- videoCapturerPresetUpdated
- videoCapturerPresetApplied
- ptzControlsChanged