Interface description
PTZ control
Request Example
https://v7.cmsv8.com/StandardApiAction_sendPTZControl.action?jsession=66d754dd7f41473dbd2&DevIDNO=013300000001&Chn=0&Command=1&Speed=1&Param=1
Request parameters
| Parameter name |
Parameter type |
Is required |
Example |
Description |
| jsession |
string |
Yes |
66d754dd7f41473dbd2 |
Session number |
| DevIDNO |
string |
Yes |
013300000001 |
Device number |
| Chn |
number |
Yes |
0 |
Device channel (starting from 0) 0 means channel 1 and 1 means channel 2. |
| Command |
number |
Yes |
1 |
control command type 0 left; 1 right; 2 up; 3 down; 4 upper left; 5 upper right; 6 lower left; 7 lower right; 8 focal length becomes smaller; 9 focal length becomes larger; 10 aperture becomes smaller; 11 aperture becomes larger; 12 focus back adjustment (multiple);13 focus front adjustment; 14 lights; 16 wipers; 18 automatic cruise; 19 stop; 21 call; 22 Set; 23 Delete |
| Speed |
number |
Yes |
1 |
speed, when moving in the direction, the speed is valid, the range is 0- 255 |
| Param |
number |
Yes |
1 |
Param is valid when it is a preset bit operation, indicating the sequence number of the preset bit (21 call; 22 setting; 23 incoming when deleting) |
Return parameters
| Parameter Name | parameter Type | meaning of parameters |
|---|
| cmsserver | number | server Parameters |
| result | number | interface status code, 0 is normal, and other information is abnormal. For more information, see [Error Code Description](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1&lang=en "Error Code Description"). |
Return Example
{
"cmsserver": 1,
"result": 0
}