mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-06-14 22:25:51 +08:00
再次解决换源时间进度问题
This commit is contained in:
@@ -340,13 +340,15 @@ export default {
|
|||||||
this.getIptvList()
|
this.getIptvList()
|
||||||
} else {
|
} else {
|
||||||
const index = this.video.info.index | 0
|
const index = this.video.info.index | 0
|
||||||
let time = 0
|
let historyTime = 0
|
||||||
const db = await history.find({ site: this.video.key, ids: this.video.info.id })
|
const db = await history.find({ site: this.video.key, ids: this.video.info.id })
|
||||||
if (db) {
|
if (db) {
|
||||||
if (db.index === index) {
|
if (db.index === index) {
|
||||||
time = db.time
|
historyTime = db.time
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 如果video.info.time没有设定的话,从历史中读取时间进度
|
||||||
|
const time = this.video.info.time | historyTime
|
||||||
this.playVideo(index, time)
|
this.playVideo(index, time)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user