package com.supervision.web.videoManage.service; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.supervision.web.videoManage.domain.Video; import com.supervision.web.videoManage.mapper.VideoMapper; import com.supervision.web.videoManage.other.FFmpegManager; import com.supervision.web.videoManage.vo.VideoVo; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import java.io.*; import java.util.*; import java.util.concurrent.CompletableFuture; @Slf4j @Service("VideoService") public class VideoServiceImpl implements VideoService { @Value("${video.nginxProxyUrl}") private String nginxProxyUrl; // @Value("${video.videoFormat}") // private String videoFormat; @Value("${video.videoFilePath}") private String videoFilePath; // @Value("${video.cmd}") // private String ffmpegCmd; // private CommandUtil commandUtil; // private int i; /** 注入Mapper用于数据库访问 */ @Autowired private VideoMapper videoMapper; // FFmpegManager 作为单例 private final FFmpegManager ffmpegManager; // 构造函数注入 FFmpegManager @Autowired public VideoServiceImpl(FFmpegManager ffmpegManager) { this.ffmpegManager = ffmpegManager; } /** 查询所有视频 */ @Override public List