vod普通加密
This commit is contained in:
@@ -118,6 +118,13 @@ public class CourseCatalogueChapterVideoServiceImpl extends ServiceImpl<CourseCa
|
||||
String url = urlBody==null?null:urlBody.getPlayInfoList().getPlayInfo().get(0).getPlayURL()+"?MtsHlsUriToken="+s;
|
||||
video.setMtsHlsUriToken(s);
|
||||
video.setM3u8Url(url);
|
||||
//添加转码失败的标记
|
||||
if(url==null){
|
||||
List<VideoM3u8Entity> videoM3u8Entities = videoM3u8Dao.selectList(new LambdaQueryWrapper<VideoM3u8Entity>().eq(VideoM3u8Entity::getVid, video.getVideo()));
|
||||
VideoM3u8Entity videoM3u8Entity = videoM3u8Entities.get(0);
|
||||
videoM3u8Entity.setState(1);
|
||||
videoM3u8Dao.updateById(videoM3u8Entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
UserCourseVideoPositionEntity videoPosition = getVideoPosition(video, uId);
|
||||
@@ -125,20 +132,20 @@ public class CourseCatalogueChapterVideoServiceImpl extends ServiceImpl<CourseCa
|
||||
if (video.getType() == 0) {
|
||||
String s_str = "";
|
||||
if (video.getVideo().startsWith("common/")) {
|
||||
s_str = "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/";
|
||||
s_str = "http://oss.taihumed.com/video/";
|
||||
} else if (video.getVideo().startsWith("article/")) {
|
||||
s_str = "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/";
|
||||
s_str = "http://oss.taihumed.com/video/";
|
||||
} else {
|
||||
s_str = "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/taiHuClass/";
|
||||
s_str = "http://oss.taihumed.com/video/taiHuClass/";
|
||||
}
|
||||
video.setVideoUrl(s_str + video.getVideo());
|
||||
}
|
||||
if(video.getType() == 2){
|
||||
String s_str = "";
|
||||
if (video.getVideo().startsWith("article/")) {
|
||||
s_str = "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/voice/article/";
|
||||
s_str = "http://oss.taihumed.com/voice/article/";
|
||||
} else {
|
||||
s_str = "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/voice/taiHuClass/";
|
||||
s_str = "http://oss.taihumed.com/voice/taiHuClass/";
|
||||
}
|
||||
video.setVideoUrl(s_str + video.getVideo());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user