修复直播时触发timeupdate导致的异常

This commit is contained in:
buvta
2021-01-21 17:11:46 +08:00
parent 31ea52e267
commit 047224ce80

View File

@@ -1443,6 +1443,7 @@ export default {
})
this.xg.on('timeupdate', () => {
if (this.isLive) return
const key = this.video.key + '@' + this.video.info.id
if (VIDEO_DETAIL_CACHE[key] && VIDEO_DETAIL_CACHE[key].endPosition) {
const time = this.xg.duration - VIDEO_DETAIL_CACHE[key].endPosition - this.xg.currentTime