mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-07 14:13:26 +08:00
修复直播时触发timeupdate导致的异常
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user