updatePresetFromCurrentVideoCapturer
About 2 min
updatePresetFromCurrentVideoCapturer
Description: update the specified video capture device preset. v4.2.0+
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 updatedcomPort- the selected COM port for PTZ camera control. If the COM port is not used, the field will contain an empty string.pan- the property for adjusting the rotation of the video capture devicetilt- the tilt property of the video capture devicezoom- video capture device zoom propertypreview- preset previewvideoCapturerName- the unique name of the video capture deviceisPresent- a flag indicating the presence of a property in the presetvalue- the property values. This field is absent ifisPresentisfalse.requestId- a unique request identifier. You can find more details about it here.
See also:
- getPtzControls
- ptzZoomInc
- ptzZoomDec
- ptzUp
- ptzDown
- ptzStop
- ptzRight
- ptzLeft
- setPanPos
- setTiltPos
- setZoomPos
- setPtzDefaults
- addPresetFromCurrentVideoCapturer
- addVideoCapturerPreset
- getAllVideoCapturerPresets
- applyVideoCapturerPreset
- removeVideoCapturerPreset
- videoCapturerPresetRemoved
- videoCapturerPresetAdded
- videoCapturerPresetUpdated
- videoCapturerPresetApplied
- ptzControlsChanged