| | |
| | | package com.genersoft.iot.vmp.web.gb28181; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson2.JSONArray; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.genersoft.iot.vmp.gb28181.bean.Device; |
| | | import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; |
| | | import com.genersoft.iot.vmp.service.IDeviceService; |
| | | import com.genersoft.iot.vmp.storager.IVideoManagerStorage; |
| | | import com.github.pagehelper.PageInfo; |
| | | import org.slf4j.Logger; |
| | |
| | | |
| | | @Autowired |
| | | private IVideoManagerStorage storager; |
| | | @Autowired |
| | | private IDeviceService deviceService; |
| | | |
| | | // @Autowired |
| | | // private SIPCommander cmder; |
| | |
| | | // private DeviceOffLineDetector offLineDetector; |
| | | |
| | | /** |
| | | * 分页获取设备列表 TODO 现在直接返回,尚未实现分页 |
| | | * 分页获取设备列表 现在直接返回,尚未实现分页 |
| | | * @param start |
| | | * @param limit |
| | | * @param q |
| | |
| | | deviceJOSNChannel.put("DeviceID", device.getDeviceId()); |
| | | deviceJOSNChannel.put("DeviceName", device.getName()); |
| | | deviceJOSNChannel.put("DeviceOnline", device.getOnline() == 1); |
| | | deviceJOSNChannel.put("Channel", 0); // TODO 自定义序号 |
| | | deviceJOSNChannel.put("Channel", 0); // 自定义序号 |
| | | deviceJOSNChannel.put("Name", deviceChannel.getName()); |
| | | deviceJOSNChannel.put("Custom", false); |
| | | deviceJOSNChannel.put("CustomName", ""); |
| | | deviceJOSNChannel.put("SubCount", deviceChannel.getSubCount()); // TODO ? 子节点数, SubCount > 0 表示该通道为子目录 |
| | | deviceJOSNChannel.put("SubCount", deviceChannel.getSubCount()); // 子节点数, SubCount > 0 表示该通道为子目录 |
| | | deviceJOSNChannel.put("SnapURL", ""); |
| | | deviceJOSNChannel.put("Manufacturer ", deviceChannel.getManufacture()); |
| | | deviceJOSNChannel.put("Model", deviceChannel.getModel()); |