Administrator
12 hours ago bc0165c6171fc35385e7e7abfe007ad19e4dc092
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);