|
@@ -84,6 +84,7 @@ public class CameraUtil {
|
|
|
private static String bakUrlRtsp;
|
|
|
private static String wsUrl;
|
|
|
private static String httpUrl;
|
|
|
+ private static String httpUrls;
|
|
|
private static CmdCameraUtil cUtil;
|
|
|
private static RedisCache rc;
|
|
|
private static ServerConfig sc;
|
|
@@ -596,6 +597,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
sc = serverConfig;
|
|
|
wsUrl = caneraConfig.getWsUrl();
|
|
|
httpUrl = caneraConfig.getHttpUrl();
|
|
|
+ httpUrls = caneraConfig.getHttpUrls();
|
|
|
recordUrl = caneraConfig.getRecordUrl();
|
|
|
hkUrl = caneraConfig.getHkUrl();
|
|
|
host = caneraConfig.getHost();
|
|
@@ -1064,8 +1066,12 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
log.info("urls----->" + urls);
|
|
|
try {
|
|
|
TimeUnit.SECONDS.sleep(3);
|
|
|
+ log.info("msg---------->" + httpUrl + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
|
|
|
String msg = HttpUtils.sendGet(httpUrl + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
|
|
|
log.info("msg---------->" + msg);
|
|
|
+ log.info("code---------->" + httpUrls + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
|
|
|
+ String code = HttpUtils.sendGet(httpUrls + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
|
|
|
+ log.info("code---------->" + code);
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|