File was renamed from src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java |
| | |
| | | package com.genersoft.iot.vmp.web; |
| | | package com.genersoft.iot.vmp.web.gb28181; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | @RequestParam(required = false)String q, |
| | | @RequestParam(required = false)Boolean online ){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询所有视频设备API调用"); |
| | | } |
| | | |
| | | logger.debug("查询所有视频设备API调用"); |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询所有视频设备API调用"); |
| | | // } |
| | | JSONObject result = new JSONObject(); |
| | | List<Device> devices; |
| | | if (start == null || limit ==null) { |
| | |
| | | deviceJsonObject.put("ChannelCount", device.getChannelCount()); |
| | | deviceJsonObject.put("RecvStreamIP", ""); |
| | | deviceJsonObject.put("CatalogInterval", 3600); // 通道目录抓取周期 |
| | | deviceJsonObject.put("SubscribeInterval", 0); // 订阅周期(秒), 0 表示后台不周期订阅 |
| | | deviceJsonObject.put("SubscribeInterval", device.getSubscribeCycleForCatalog()); // 订阅周期(秒), 0 表示后台不周期订阅 |
| | | deviceJsonObject.put("Online", device.getOnline() == 1); |
| | | deviceJsonObject.put("Password", ""); |
| | | deviceJsonObject.put("MediaTransport", device.getTransport()); |
| | |
| | | @RequestParam(required = false)String q, |
| | | @RequestParam(required = false)Boolean online ){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询所有视频设备API调用"); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询所有视频设备API调用"); |
| | | // } |
| | | JSONObject result = new JSONObject(); |
| | | // 查询设备是否存在 |
| | | Device device = storager.queryVideoDevice(serial); |