|
@@ -105,7 +105,6 @@
|
|
|
},
|
|
|
sectionPlayerProgress(progress) {
|
|
|
let sectionPage = getKechengSectionPageFromHistory(this.operId);
|
|
|
- console.log('sectionPage',sectionPage)
|
|
|
let maxProcess = this.list[sectionPage.iChapter].jieList[sectionPage.iSection].kejianList.find(it1=>it1.kjId == sectionPage.kjId).maxProcess;
|
|
|
// 更新缓存进度
|
|
|
this.list[sectionPage.iChapter].jieList[sectionPage.iSection].kejianList.find(it1=>it1.kjId == sectionPage.kjId).curProcess = progress;
|
|
@@ -181,7 +180,6 @@
|
|
|
return;
|
|
|
}
|
|
|
this.curPlayData = data;
|
|
|
-
|
|
|
const {
|
|
|
zhangIndex,
|
|
|
jieIndex
|
|
@@ -195,10 +193,11 @@
|
|
|
kechengApi.getVideoAuth({
|
|
|
videoId: data.url
|
|
|
}).then(res => {
|
|
|
+ const progress = data.curProcess || 0;
|
|
|
this.$refs.videoRef.init({
|
|
|
videoId: data.url,
|
|
|
playAuth: res.data,
|
|
|
- seekTime: '',
|
|
|
+ seekTime: data.duration * progress / 100,
|
|
|
isPlay: false
|
|
|
})
|
|
|
|