Compare commits

...

8 Commits

Author SHA1 Message Date
Caojr
748f7c5913 szx-1282 修改失败提示语 2025-11-04 14:09:26 +08:00
Caojr
5954d54e44 szx-1282 视频解码失败返回 2025-11-04 13:33:12 +08:00
Caojr
00527271b6 szx-1283 撤回修改 2025-11-03 16:07:12 +08:00
Caojr
308a16f4b4 szx-1283 修改ffmpeg路径 2025-11-03 15:39:03 +08:00
Caojr
302a673515 szx-1283 修改ffmpeg路径 2025-11-03 15:13:21 +08:00
Caojr
49b69db0bf szx-1283 修改ffmpeg路径 2025-11-03 15:06:27 +08:00
Caojr
8a0b05079a szx-1283 修改依赖 2025-11-03 11:51:31 +08:00
Caojr
eaab48607d szx-1283 修改依赖 2025-11-03 11:45:32 +08:00

View File

@@ -15,6 +15,8 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import it.sauronsoftware.jave.Encoder;
import it.sauronsoftware.jave.MultimediaInfo;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.orm.ObjectOptimisticLockingFailureException; import org.springframework.orm.ObjectOptimisticLockingFailureException;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@@ -46,8 +48,6 @@ import com.xboe.module.scorm.SCORMParser;
import com.xboe.standard.BaseConstant; import com.xboe.standard.BaseConstant;
import com.xboe.standard.enums.BoedxCourseFileType; import com.xboe.standard.enums.BoedxCourseFileType;
import it.sauronsoftware.jave.Encoder;
import it.sauronsoftware.jave.MultimediaInfo;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
/** /**
@@ -256,7 +256,7 @@ public class CourseFileApi extends ApiBaseController {
} }
String fileFullPath = SysConstant.getConfigValue(BaseConstant.CONFIG_UPLOAD_FILES_SAVEPATH) + file.getFilePath(); String fileFullPath = SysConstant.getConfigValue(BaseConstant.CONFIG_UPLOAD_FILES_SAVEPATH) + file.getFilePath();
if ("mp3,mp4".indexOf(file.getFileType()) > -1){ if ("mp3,mp4".indexOf(file.getFileType()) > -1){
log.info("上传 "+file.getFileType()+"文件:"+file.getFilePath()); log.info("上传 "+file.getFileType()+"文件:"+file.getFilePath());
Encoder encoder = new Encoder(); Encoder encoder = new Encoder();
try { try {
//System.out.println(fileFullPath); //System.out.println(fileFullPath);
@@ -278,8 +278,8 @@ public class CourseFileApi extends ApiBaseController {
} }
} }
} catch (Exception e) { } catch (Exception e) {
log.error("读取视频时长错误"); log.error("读取视频时长错误", e);
// e.printStackTrace(); return error("视频解析失败,尝试重新上传或联系管理员", "视频解析失败,尝试重新上传或联系管理员");
} }
} }