打开换源页面时,记录当前时间,换源时使用该时间。否则,如果换源失败,this.xg.currentTime 会被重置为0

This commit is contained in:
haiyangcui
2020-11-04 12:11:49 +01:00
parent 59d33d201c
commit ca36841f5d

View File

@@ -202,7 +202,8 @@ export default {
list: [],
history: [],
shortcut: [],
other: []
other: [],
currentTime: 0
},
config: {
id: 'xgplayer',
@@ -781,10 +782,11 @@ export default {
this.right.type = 'other'
this.getOtherSites()
this.right.show = true
this.right.currentTime = this.xg.currentTime
},
async otherItemEvent (e) {
// 打开当前播放的剧集index, 定位到当前的时间
this.video = { key: e.key, info: { id: e.id, name: e.name, site: e.site, index: this.video.info.index, time: this.xg.currentTime } }
this.video = { key: e.key, info: { id: e.id, name: e.name, site: e.site, index: this.video.info.index, time: this.right.currentTime } }
},
mtEvent () {
setting.find().then(res => {