|
@@ -2,6 +2,8 @@ package com.ozs.web.core.util;
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
+import com.alibaba.fastjson2.JSONArray;
|
|
|
+import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.ozs.common.config.BaseConfig;
|
|
@@ -1006,11 +1008,26 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
//
|
|
|
// List<String> ones = one.stream().filter(o -> !other.contains(o)).collect(Collectors.toList());
|
|
|
// System.out.println("ArrayList 1: " + one + " ; isRetainAll:" + ones);
|
|
|
- long dades = System.currentTimeMillis();
|
|
|
- System.out.println(new Date(dades));
|
|
|
- long time2 = dades - 60000L;
|
|
|
- System.out.println(dades);
|
|
|
- System.out.println(time2);
|
|
|
- System.out.println(new Date(time2));
|
|
|
+// long dades = System.currentTimeMillis();
|
|
|
+// System.out.println(new Date(dades));
|
|
|
+// long time2 = dades - 60000L;
|
|
|
+// System.out.println(dades);
|
|
|
+// System.out.println(time2);
|
|
|
+// System.out.println(new Date(time2));
|
|
|
+ // 视频拼接
|
|
|
+ String streamPath = "42010001541320000023/42010001541320000023";
|
|
|
+ String date="2024-03-11";
|
|
|
+ String param = "{\n" +
|
|
|
+ " \"streamPath\":\"" + streamPath + "\",\n" +
|
|
|
+ " \"date\":\""+date+"\"\n" +
|
|
|
+ "}";
|
|
|
+
|
|
|
+ String jsonStr = HttpUtils.sendPost("http://124.70.58.209:9080" + "/recordpro/api/query/records", param);
|
|
|
+ JSONObject jsonObj = JSON.parseObject(jsonStr);
|
|
|
+ JSONArray resultArray = jsonObj.getJSONArray("result");
|
|
|
+ JSONObject resultObj = resultArray.getJSONObject(0);
|
|
|
+ String path = resultObj.getString("Path");
|
|
|
+ System.out.println("Path: " + path);
|
|
|
+
|
|
|
}
|
|
|
}
|