|
@@ -9,9 +9,11 @@ import com.fs.common.core.page.TableDataInfo;
|
|
|
import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
+import com.fs.course.domain.FsUserCourseVideo;
|
|
|
import com.fs.course.domain.FsUserVideo;
|
|
|
import com.fs.course.domain.FsVideoResource;
|
|
|
import com.fs.course.param.*;
|
|
|
+import com.fs.course.service.IFsUserCourseVideoService;
|
|
|
import com.fs.course.service.IFsUserVideoService;
|
|
|
import com.fs.course.service.IFsVideoResourceService;
|
|
|
import com.fs.course.service.impl.TencentCloudCosService;
|
|
@@ -55,6 +57,9 @@ public class FsUserVideoController extends BaseController
|
|
|
@Autowired
|
|
|
private IFsVideoResourceService iFsVideoResourceService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IFsUserCourseVideoService fsUserCourseVideoService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询课堂视频列表
|
|
|
*/
|
|
@@ -354,6 +359,13 @@ public class FsUserVideoController extends BaseController
|
|
|
iFsVideoResourceService.updateById(videoMap);
|
|
|
log.info("成功更新视频转码状态,视频ID: {}", video.getId());
|
|
|
|
|
|
+
|
|
|
+ FsUserCourseVideo fsUserCourseVideo = fsUserCourseVideoService.selectByFileKey(video.getFileKey());
|
|
|
+ fsUserCourseVideo.setLineOne(video.getLine1().replace(inputPath,transcodeFileKey));
|
|
|
+ fsUserCourseVideo.setTranscodeFileKey(transcodeFileKey);
|
|
|
+ fsUserCourseVideo.setIsTranscode(1);
|
|
|
+ fsUserCourseVideoService.updateFsUserCourseVideo(fsUserCourseVideo);
|
|
|
+
|
|
|
return R.ok();
|
|
|
} catch (Exception e) {
|
|
|
log.error("处理视频转码请求时发生异常", e);
|