vod普通加密

This commit is contained in:
wangjinlei
2024-07-29 09:19:30 +08:00
parent 9a594b8cc8
commit d78551efc3
5 changed files with 42 additions and 10 deletions

View File

@@ -3,8 +3,10 @@ package com.peanut.modules.master.controller;
import com.aliyun.vod20170321.models.GenerateKMSDataKeyResponseBody;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.peanut.common.utils.R;
import com.peanut.common.utils.SpdbUtil;
import com.peanut.modules.common.dao.CourseCatalogueChapterVideoDao;
import com.peanut.modules.common.dao.VideoM3u8Dao;
import com.peanut.modules.common.entity.*;
import com.peanut.modules.common.to.EditCourseRecordDto;
@@ -35,6 +37,8 @@ public class CourseController {
@Autowired
private CourseCatalogueChapterVideoService courseCatalogueChapterVideoService;
@Autowired
private CourseCatalogueChapterVideoDao courseCatalogueChapterVideoDao;
@Autowired
private SysCourseDirectService sysCourseDirectService;
@Autowired
private ShopProductService shopProductService;
@@ -93,6 +97,20 @@ public class CourseController {
return R.ok();
}
@RequestMapping("/cossVod1")
public R cossVod1() throws Exception {
MPJLambdaWrapper<CourseCatalogueChapterVideoEntity> wrapper = new MPJLambdaWrapper<>();
wrapper.selectAll(CourseCatalogueChapterVideoEntity.class);
wrapper.leftJoin(VideoM3u8Entity.class,VideoM3u8Entity::getVid,CourseCatalogueChapterVideoEntity::getVideo);
wrapper.eq(CourseCatalogueChapterVideoEntity::getType,1);
wrapper.isNull(VideoM3u8Entity::getId);
List<CourseCatalogueChapterVideoEntity> courseCatalogueChapterVideoEntities = courseCatalogueChapterVideoDao.selectJoinList(CourseCatalogueChapterVideoEntity.class, wrapper);
for (CourseCatalogueChapterVideoEntity c:courseCatalogueChapterVideoEntities){
spdbUtil.vodTranslationM3u8(c.getVideo());
}
return R.ok().put("list",courseCatalogueChapterVideoEntities);
}
@RequestMapping("/getCoursedetail")