Browse Source

报警回放本地测试

gao.qiang 1 year ago
parent
commit
9e9b8cf137

+ 1 - 3
vehicle-admin/src/main/java/com/ozs/web/controller/accountmanagment/BaseCameraManagementController.java

@@ -1035,9 +1035,7 @@ public class BaseCameraManagementController extends BaseController {
     @ApiOperation("报警回放本地测试")
     @Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
     public AjaxResult getAlarmRecord() {
-        List<BaseCameraManagement> list = baseCameraManagementService.list(new QueryWrapper<BaseCameraManagement>().eq("line_dir",2));
-        List<String> collect = list.stream().map(BaseCameraManagement::getCameraCode).collect(Collectors.toList());
-        CompletableFuture.runAsync(() -> cameraUtil.playbackURLs(collect));
+        CameraUtil.streamUrlDownload("rtsp://124.70.58.209:8554/42010001541320000024/42010001541320000024", "42010001541320000024");
         return AjaxResult.success("ok");
     }