# getPtzControls
Description: check if it is possible to control a PTZ camera of VideoSDK/Room.
Request example:
{ "method" : "getPtzControls", "requestId" : "1" }
Copied!
Response example:
{ "method": "getPtzControls", "requestId" : "1", "pan": { "isContinuousType": false, "support": true, "minValue": -10, "maxValue": 10, "currentValue": 0, "defValue": 0, "step": 1, "inverted" : false }, "tilt": { "support": false }, "zoom": { "isContinuousType": false, "support": true, "minValue": 1, "maxValue": 5, "currentValue": 1, "defValue": 1, "step": 4, "inverted" : false }, "videoCapturerName": "USB Video Device", "videoCapturerDescription": "\\\\?\\usb#vid_046d&pid_0823&mi_02#6&1fd43445&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global", "result": true }
Copied!
Parameter description:
pan
— detailed information about the “pan” property of the PTZ cameratilt
— detailed information about the “tilt” property of the PTZ camerazoom
— detailed information about the “zoom” property of the PTZ camera.support
— the flag indicating if the property is availableminValue
— the minimum value of a property. The field is included ifsupport
is equal totrue
maxValue
— the maximum value of a property. The field is included ifsupport
is equal totrue
currentValue
— the current value of a property. The field is included ifsupport
is equal totrue
defValue
— the default value. The field is included ifsupport
is equal totrue
videoCapturerName
- the unique name of the current video capture devicevideoCapturerDescription
— the unique identifier of the current video capture devicestep
— the rate of property change. The field is included ifsupport
is equal totrue
isContinuousType
— the flag indicating if the value of a property can change continuouslyinverted
- a flag indicating the inversion of a propertyrequestId
- a unique request identifier. You can learn more about it here.
See also:
- ptzZoomInc
- ptzZoomDec
- ptzUp
- ptzDown
- ptzStop
- ptzRight
- ptzLeft
- setPanPos
- setTiltPos
- setZoomPos
- setPtzDefaults
- addPresetFromCurrentVideoCapturer
- addVideoCapturerPreset
- getAllVideoCapturerPresets
- updateVideoCapturerPreset
- applyVideoCapturerPreset
- removeVideoCapturerPreset
- setCurrentPtzPropertyInverted
- videoCapturerPresetRemoved
- videoCapturerPresetAdded
- videoCapturerPresetUpdated
- videoCapturerPresetApplied
- ptzControlsChanged