Administrator
4 hours ago 1cef93fa4d965877d2de2b1d83b1891061dfa6a6
src/main/java/cc/mrbird/febs/ai/controller/productPoint/VideoPlayController.java
@@ -31,8 +31,8 @@
    public static final String baseUploadDir = "/home/javaweb/webresource/ai/file";
    @GetMapping("/play/{fileName}")
    public void playVideo(@PathVariable("fileName") String fileName, HttpServletRequest request, HttpServletResponse response) {
    @GetMapping("/play/{fileName}/{companyId}")
    public void playVideo(@PathVariable("fileName") String fileName,@PathVariable("companyId") String companyId, HttpServletRequest request, HttpServletResponse response) {
        log.info("开始播放视频文件: {}", fileName);
        // 配置参数
@@ -40,7 +40,7 @@
        final long MAX_INITIAL_SEGMENT = 1024 * 1024 * 15; // 最大初始片段大小(15MB),约30秒中等码率视频
        try {
            String companyId = LoginUserUtil.getLoginUser().getCompanyId();
//            String companyId = LoginUserUtil.getLoginUser().getCompanyId();
            String uploadDir = baseUploadDir + "/" + companyId;
            Path filePath = Paths.get(uploadDir, fileName);