| | |
| | | JSONObject result = new JSONObject(); |
| | | List<Device> devices; |
| | | if (start == null || limit ==null) { |
| | | devices = storager.queryVideoDeviceList(null); |
| | | devices = storager.queryVideoDeviceList(); |
| | | result.put("DeviceCount", devices.size()); |
| | | }else { |
| | | PageResult<Device> deviceList = storager.queryVideoDeviceList(null, start/limit, limit); |
| | |
| | | deviceJOSNChannel.put("PTZType ", deviceChannel.getPTZType()); // 云台类型, 0 - 未知, 1 - 球机, 2 - 半球, |
| | | // 3 - 固定枪机, 4 - 遥控枪机 |
| | | deviceJOSNChannel.put("CustomPTZType", ""); |
| | | deviceJOSNChannel.put("StreamID", deviceChannel.getSsrc()); // StreamID 直播流ID, 有值表示正在直播 |
| | | deviceJOSNChannel.put("StreamID", deviceChannel.getStreamId()); // StreamID 直播流ID, 有值表示正在直播 |
| | | deviceJOSNChannel.put("NumOutputs ", -1); // 直播在线人数 |
| | | channleJSONList.add(deviceJOSNChannel); |
| | | } |