修复潜在的音乐加载超时不会切歌的问题

This commit is contained in:
lyswhut
2021-11-13 23:29:09 +08:00
parent be7b06f5c8
commit 47dffeee76
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -370,6 +370,7 @@ export default {
audio.addEventListener('playing', () => {
console.log('开始播放')
this.clearBufferTimeout()
this.statusText = this.$t('core.player.playing')
this.status = ''
this.startPlay()
@@ -432,7 +433,6 @@ export default {
this.mediaBuffer.playTime = 0
audio.currentTime = playTime
}
this.clearBufferTimeout()
this.updatePositionState()
// if (this.musicInfo.lrc) window.lrc.play(audio.currentTime * 1000)