| | |
| | | jsonBody.put("streamType", 0); |
| | | jsonBody.put("protocol", "hls"); |
| | | jsonBody.put("transmode", 0); |
| | | jsonBody.put("expand","transcode=1&videotype=h264"); |
| | | String body = jsonBody.toString(); |
| | | //参数根据接口实际情况设置 |
| | | HttpResponse result = ArtemisHttpUtil.doPostStringImgArtemis(config, path, body, query, null, "application/json", head); |
| | | HttpResponse result = ArtemisHttpUtil.doPostStringImgArtemis(config, path, body, null, null, "application/json", null); |
| | | System.out.println("海康完成请求"); |
| | | try { |
| | | String strResult = EntityUtils.toString(result.getEntity()); |