时长信息转到video主体 增加多线程获取时间方法
This commit is contained in:
@@ -17,6 +17,8 @@ import com.peanut.modules.master.service.CourseCatalogueChapterVideoService;
|
||||
import com.peanut.modules.sociology.service.CourseCatalogueChapterService;
|
||||
import com.peanut.modules.sociology.service.CourseService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.bytedeco.javacv.FFmpegFrameGrabber;
|
||||
import org.bytedeco.javacv.FrameGrabber;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -112,12 +114,13 @@ public class CourseController {
|
||||
return R.ok().put("playAuth",playAuth);
|
||||
}
|
||||
|
||||
@RequestMapping("/saveCoursePosition")
|
||||
public R saveCoursePosition(@RequestBody Map<String,Integer> map){
|
||||
Integer uId = ShiroUtils.getUId();
|
||||
Integer videoId = map.get("videoId");
|
||||
Integer position = map.get("position");
|
||||
courseCatalogueChapterVideoService.saveCoursePosition(uId,videoId,position);
|
||||
return null;
|
||||
return R.ok();
|
||||
}
|
||||
/**
|
||||
* 验证video权限,并解决足迹,加密视频签名问题
|
||||
|
||||
Reference in New Issue
Block a user