| | |
| | | @RequestParam(required = false) Integer communityId) { |
| | | |
| | | IPage<VideoPointVo> pointVoIPage = iVideoPointService.getList(streetId, communityId, current.intValue(), size.intValue()); |
| | | pointVoIPage.getRecords() |
| | | .stream() |
| | | .forEach(item -> item.setUrlAddress(videoUtil.getVideo(item.getPlatResourceId(), "HLS", 0))); |
| | | // pointVoIPage.getRecords() |
| | | // .stream() |
| | | // .forEach(item -> item.setUrlAddress(videoUtil.getVideo(item.getPlatResourceId(), "HLS", 0))); |
| | | return CommonResult.success(pointVoIPage); |
| | | } |
| | | |
| | |
| | | String clientType = "winpc"; |
| | | String reqUrl = "/videoService/accounts/authorize"; |
| | | String deviceUrl = "/videoService/devicesManager/devices"; |
| | | String monitorUrl = "/videoService/realmonitor/uri?subType=" + subType + "&scheme=" + scheme + "&channelId="; |
| | | // String monitorUrl = "/videoService/realmonitor/uri?subType=" + subType + "&scheme=" + scheme + "&channelId="; |
| | | |
| | | String monitorUrl = "/videoService/realmonitor/uri?trackId=&encryptedInfo=&userId=&urlType=1&keyIndex=®ionId=&packtype=Private&planId=&subType=" + subType + "&isroute=false&streamType=&locationEnable=false&domainId=&duration=600&scheme=RTSP&dataType=2&extend=&channelId="; |
| | | if (!"RTSP".equals(scheme)) { |
| | | monitorUrl = "/videoService/realmonitor/uri?subType=" + subType + "&scheme=" + scheme + "&channelId="; |
| | | } |
| | | RestTemplate restTemplate = new RestTemplate(); |
| | | restTemplate.setErrorHandler(new DefaultResponseErrorHandler() { |
| | | @Override |