重新解决换源时间进度问题,发现记录this.video.info.time的话,视频会卡一下

This commit is contained in:
haiyangcui
2020-11-02 18:03:47 +01:00
parent 42c89120da
commit 880dd9ff35

View File

@@ -459,7 +459,6 @@ export default {
doc.time = this.xg.currentTime
delete doc.id
history.update(db.id, doc)
this.video.info.time = this.xg.currentTime
}
}, 10000)
},
@@ -777,7 +776,7 @@ export default {
},
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.video.info.time } }
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.right.show = false
this.right.type = ''
},