| | |
| | | //请求视频播放地址 |
| | | String params = HttpClientUtils.doGet("https://web.byisf.com:18000/GetPlayUrl", map); |
| | | |
| | | Map<String, Object> data = (Map<String, Object>) JSONObject.parse(params); |
| | | if (!data.get("code").toString().equals("-1")){ |
| | | Map<String, Object> datas = (Map<String, Object>) JSONObject.parse(data.get("data").toString()); |
| | | String m3u8 = datas.get("m3u8").toString(); |
| | | //如果返回值不为空 |
| | | if (params != ""){ |
| | | Map<String, Object> data = (Map<String, Object>) JSONObject.parse(params); |
| | | if (!data.get("code").toString().equals("-1")){ |
| | | Map<String, Object> datas = (Map<String, Object>) JSONObject.parse(data.get("data").toString()); |
| | | String m3u8 = datas.get("m3u8").toString(); |
| | | |
| | | Map<String, String> rmap = new HashMap<>(); |
| | | rmap.put("url", m3u8); |
| | | rmap.put("jid", alarm.getId().toString()); |
| | | Map<String, String> rmap = new HashMap<>(); |
| | | rmap.put("url", m3u8); |
| | | rmap.put("jid", alarm.getId().toString()); |
| | | |
| | | //请求视频录制 |
| | | String rvideo = HttpClientUtils.doPost("https://web.byisf.com/api/blade-jfpts/rvideo/rVoids", rmap); |
| | | //String rvideo = HttpClientUtils.doPost("http://localhost:82/blade-jfpts/rvideo/rVoids", rmap); |
| | | //请求视频录制 |
| | | String rvideo = HttpClientUtils.doPost("https://web.byisf.com/api/blade-jfpts/rvideo/rVoids", rmap); |
| | | //String rvideo = HttpClientUtils.doPost("http://localhost:82/blade-jfpts/rvideo/rVoids", rmap); |
| | | } |
| | | } |
| | | } |
| | | |