# addVideoCapturerPreset
Version: 4.2.0+
Description: add a preset for video capture device with specified parameters.
Request example:
{
"method": "addVideoCapturerPreset",
"requestId" : "1",
"videoCapturerName": "USB Video Device",
"videoCapturerDescription": "\\\\?\\usb#vid_046d&pid_0823&mi_02#6&1fd43445&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global",
"isMuted": false,
"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
- identifier of the created presetisMuted
— the flag indicating if the video capture device is turned on or offpan
- property for rotating the video capture devicetilt
- property of the tilt angle of the video capture devicezoom
- the zoom property of the video capture device.preview
- preset preview. If theisPresent
field is present, thevalue
field should contain the source jpeg image in BASE64 format.videoCapturerName
— the name of the current video capture devicevideoCapturerDescription
— the unique identifier of the current video capture deviceisPresent
- a flag indicating the presence of a property in the presetvalue
- property value. This field must be present ifisPresent
is equal totrue
requestId
- unique request identifier. More details can be found 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