课程说明未完成

This commit is contained in:
@fawn-nine
2024-06-20 17:04:17 +08:00
parent 910a546584
commit 2523845927
8 changed files with 718 additions and 211 deletions

View File

@@ -16,16 +16,7 @@
ref="videoContent"
@tap="renderScript.handleClick"
id="url-player-test"
:videoData="videoData"
:winWidth="winWidth"
:winHeight="winHeight"
:currentVideoList="currentVideoList"
:firstTime="firstTime"
:change:videoData="renderScript.receiveMsg"
:change:winWidth="renderScript.receiveWinWidth"
:change:winHeight="renderScript.receiveWinHeight"
:change:firstTime="renderScript.receiveFirstTime"
:change:currentVideoList="renderScript.receiveVideoList"
:videoData="videoData"
></div>
<div @tap="renderScript.emitData" ref="videoContent1" v-show="false">
直接调用renderjs中的emitData的方法,传递当前播放时长
@@ -152,7 +143,7 @@ export default {
this.options = JSON.parse(options.data);
this.videoId = this.options.video;
this.videoId = this.options.id;
this.timer = setInterval(() => {
var that = this;
@@ -212,7 +203,7 @@ export default {
}
this.options = data.currentVideo;
console.log("this.options at line 64:", this.options);
this.videoId = this.options.video;
this.videoId = this.options.id;
this.timer = setInterval(async () => {
var that = this;
if (this.currentTime) {
@@ -297,13 +288,14 @@ export default {
},
// 获取数据
getLive() {
console.log(this.options,'----------------11111111111111--------')
var data = {
...this.options,
};
console.log(data,'------------------------')
$http
.request({
url: `sociology/course/checkVideo`,
url: "medical/course/checkVideoByMD",
method: "Post", // POST、GET、PUT、DELETE具体说明查看官方文档
data,
header: {
@@ -313,22 +305,23 @@ export default {
})
.then((res) => {
console.log("res at line 252111111111111111111111111111:", res);
if (this.currentVideo.type == 1) {
var playAuth = res.video.playAuth.replace(/=/g, "");
var playAuth = res.playAuth.replace(/=/g, "");
this.videoData = {
...res.video,
videoId: res.video.video,
...res,
video: res.id,
playAuth: playAuth,
};
this.playAuth = playAuth;
} else {
this.videoData = res.video;
this.videoUrl =
// "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/taiHuClass/" +
res.video.videoUrl;
this.$nextTick(async () => {
await this.getData();
});
// this.videoData = res.video;
// this.videoUrl =
// // "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/taiHuClass/" +
// res.video.videoUrl;
// this.$nextTick(async () => {
// await this.getData();
// });
}
this.$forceUpdate();
@@ -505,6 +498,9 @@ this.player.fullscreenService.requestFullScreen();
ownerInstance.callMethod('handleEnd', )
},
getLive() {
console.log(this.videoData,'走没走。。。。。。。。。。')
if(this.videoData.type==1){
var fullScreenButtonComponent = Aliplayer.Component({
/**
@@ -732,15 +728,15 @@ this.player.on('ended', function() {
// console.log('vm', vm)
},
checkValue() {
console.log(this.videoId, this.authId, "1111888888")
if (!this.videoData.playAuth||!this.currentVideoList) {
console.log(this.videoId, this.videoData, "1111888888")
if (!this.videoData.playAuth) {
setTimeout(() => {
this.checkValue();
}, 1000);
} else {
console.log('this.videoList at line 这是这只只是594:', this.currentVideoList)
this.getLive();
this.getLive();console.log('this.videoList at line 这是这只只是594:',this.videoData)
}
},
loadWebPlayerSDK() {