|
|
|
|
@ -364,8 +364,9 @@ public class CameraControlController {
|
|
|
|
|
public Result MP4(@PathVariable Integer id) {
|
|
|
|
|
checkLogin(id);
|
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.of(2022,7,21,8,20);
|
|
|
|
|
cameraControlModule.downloadMp4(id,"E:\\work\\"+localDateTime.format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))+".mp4", localDateTime,localDateTime.plusMinutes(3),configProperties.getSavePath());
|
|
|
|
|
return Result.success();
|
|
|
|
|
String path = localDateTime.format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))+".mp4";
|
|
|
|
|
cameraControlModule.downloadMp4(id,"E:\\work\\"+path, localDateTime,localDateTime.plusMinutes(3),configProperties.getSavePath());
|
|
|
|
|
return Result.success(configProperties.getCameraConfig().getWorkUrl()+path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|