| | |
| | | public synchronized String getFrameImgByDevice(String deviceId, String channelId, String workOrderNo) throws Exception { |
| | | String url = String.format(this.rtspServer + "/api/play/start/img/%s/%s", deviceId, channelId); |
| | | String result = HttpUtils.sendGet(url); |
| | | log.info("拿到取流图片响应结果:" + result); |
| | | return result; |
| | | JSONObject jsonObject = JSON.parseObject(result); |
| | | Object imgUrl = jsonObject.get("data"); |
| | | imgUrl = Objects.isNull(imgUrl) ? "" : imgUrl; |
| | | log.info("拿到取流图片响应结果:" + imgUrl); |
| | | return (String) imgUrl; |
| | | // WVPResult wvpResult = JSON.parseObject(result, WVPResult.class); |
| | | // String imgUrl = null; |
| | | // if (wvpResult.getCode() == 0) { |