|
|
|
@ -338,10 +338,12 @@ public class IvsDeviceController { |
|
|
|
final String presetName = ivsDevChanSnapVo.getName(); |
|
|
|
final String patrolPointId = ivsDevChanSnapVo.getId(); |
|
|
|
final String uuid = ivsResourceRetryableDelegate.getLabel(); |
|
|
|
//http://199.199.199.154:9906/api/v1/device/channelsnap?serial=null&realtime=true&code=zx010500066194#xmludao&name=da&id=2074119 |
|
|
|
log.info(com.inspect.base.core.constant.Color.MAGENTA + "[IVS] CHANNEL_SNAPSHOT: {}" + com.inspect.base.core.constant.Color.END, ivsDevChanSnapVo.getCameraCode()); |
|
|
|
IvsSnapshotView ivsSnapshotView; |
|
|
|
try { |
|
|
|
ivsDevChanSnapVo.setUUID(uuid); |
|
|
|
// 这里会向摄像机发送拍照指令 |
|
|
|
ivsSnapshotView = ivsResourceRetryableDelegate.getSnapshotRetryable(ivsDevChanSnapVo); |
|
|
|
} catch (IOException e) { |
|
|
|
log.info("ivsSnapshotView {}", e.getMessage() + " final fail"); |
|
|
|
@ -365,6 +367,7 @@ public class IvsDeviceController { |
|
|
|
ivsChanSnapVo.setCameraCode(ivsDevChanSnapVo.getCameraCode()); |
|
|
|
ivsChanSnapVo.setDomainCode(ivsDevChanSnapVo.getDomainCode()); |
|
|
|
ivsChanSnapVo.setTaskID(ivsSnapshotView.getTaskID()); |
|
|
|
// 这里会从摄像机获取拍照结果 |
|
|
|
snapShotView = ivsResourceRetryableDelegate.getSnapshotListRetryable(ivsChanSnapVo); |
|
|
|
} catch (IOException e) { |
|
|
|
log.info("snapShotView {}", e.getMessage() + " final fail"); |
|
|
|
|