|
|
|
@ -80,12 +80,34 @@ public class IvsCameraServiceImpl implements IvsCameraService { |
|
|
|
|
|
|
|
Camera camera = new Camera(); |
|
|
|
//赋值 |
|
|
|
camera.setIp("192.168.1.231"); |
|
|
|
camera.setPort(8000); |
|
|
|
camera.setUserName("admin"); |
|
|
|
camera.setPassword("2016.h.BD"); |
|
|
|
camera.setChannel(11); |
|
|
|
camera.setPointNum(210); |
|
|
|
// camera.setIp("192.168.1.231"); |
|
|
|
// camera.setPort(8000); |
|
|
|
// camera.setUserName("admin"); |
|
|
|
// camera.setPassword("2016.h.BD"); |
|
|
|
// camera.setChannel(11); |
|
|
|
// camera.setPointNum(210); |
|
|
|
|
|
|
|
String ip = "192.168.1.231"; |
|
|
|
int port = 8000; |
|
|
|
int channel = 11; |
|
|
|
int pointNum = 210; |
|
|
|
String username = "admin"; |
|
|
|
String password = "2016.h.BD"; |
|
|
|
String[] splitArray = param.getAddress().split(":"); |
|
|
|
if (splitArray.length == 4) { |
|
|
|
log.info("PTZ_CONTROL CORRECT CONFIG"); |
|
|
|
ip = splitArray[0]; |
|
|
|
port = Integer.parseInt(splitArray[1]); |
|
|
|
channel = Integer.parseInt(splitArray[2]); |
|
|
|
pointNum = Integer.parseInt(splitArray[3]); |
|
|
|
} |
|
|
|
|
|
|
|
camera.setIp(ip); |
|
|
|
camera.setPort(port); |
|
|
|
camera.setUserName(username); |
|
|
|
camera.setPassword(password); |
|
|
|
camera.setChannel(channel); |
|
|
|
camera.setPointNum(pointNum); |
|
|
|
|
|
|
|
lUserID = (Integer) redisService.redisTemplate.opsForValue().get(camera.getIp() + "_userId"); |
|
|
|
|
|
|
|
|