南昌市物联网技防平台-后台
zengh
2021-09-13 315af2f6baf4763a743d8aa5dbdb21f763ac9cc3
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/hk/util/GetCameraPreviewURL.java
@@ -174,10 +174,13 @@
       */
      JSONObject jsonBody = new JSONObject();
      jsonBody.put("cameraIndexCode", cameraIndexCode);
//      jsonBody.put("streamType", 0);
//      jsonBody.put("transmode", 1);
//      jsonBody.put("expand", "streamform=ps");
//      jsonBody.put("protocol", "ws");
      jsonBody.put("streamType", "");
      jsonBody.put("expand", "");
      jsonBody.put("eurlExpand", "");
      jsonBody.put("netZoneCode", 0);
      jsonBody.put("transmode", 1);
      jsonBody.put("talkIndexCode", "ce744c4c67df464f92994185d825b6fa");
      jsonBody.put("protocol", "wss");
      String body = jsonBody.toJSONString();
      /**
       * STEP6:调用接口
@@ -260,8 +263,7 @@
      //根据子节点编号获取设备播放地址
      String result3 = GetCameraPreviewURL(HkConstant.previewURLs, code2, ProtocolConstant.HLS);
      //根据子节点编号获取音频对讲地址
      String result4 = GetTalkURLs(HkConstant.previewURLs, code2);
      String result4 = GetTalkURLs(HkConstant.talkURLs, code2);
      System.out.println("result结果示例: " + result);
      System.out.println("result1 = " + result1);