Selaa lähdekoodia

开启录制关闭录制修改

gao.qiang 1 vuosi sitten
vanhempi
commit
93e6d1e1d5

+ 2 - 2
vehicle-admin/src/main/java/com/ozs/web/core/util/CameraUtil.java

@@ -231,7 +231,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
      * @return
      */
     public static String startRecording(String cameraCode, String channel) {
-        return historyUrl + "/api/record/flv/start?streamPath=" + channel + "/" + cameraCode;
+        return historyUrl + "/recordpro/api/start?streamPath=" + channel + "/" + cameraCode;
     }
 
     /**
@@ -241,7 +241,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
      * @return
      */
     public static String endRecording(String taskId) {
-        return historyUrl + "/api/record/flv/stop?id=" + taskId;
+        return historyUrl + "/recordpro/api/stop?id=" + taskId;
     }
 
 

+ 1 - 0
vehicle-admin/src/main/resources/application.yml

@@ -18,6 +18,7 @@ base:
   dbname: vehicle #数据库名
   #图片路径前缀
   imgUrl: http://124.71.171.71:18801/picbucket
+  historyUrl: http://124.70.58.209:18812
 
 server:
   # 服务器的HTTP端口,默认为8080