addVideoCapturerPreset
About 2 min
addVideoCapturerPreset
Description: Add a video capture device preset with the specified parameters. v4.2.0+
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- the 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 left empty, the COM port will not be used.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 preview. If theisPresentfield is included, thevaluefield must contain the jpeg image source in BASE64 format.videoCapturerName- the 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 ifisPresentistrue.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
- getAllVideoCapturerPresets
- updateVideoCapturerPreset
- applyVideoCapturerPreset
- removeVideoCapturerPreset
- updatePresetFromCurrentVideoCapturer
- videoCapturerPresetRemoved
- videoCapturerPresetAdded
- videoCapturerPresetUpdated
- videoCapturerPresetApplied
- ptzControlsChanged