修复某些情况下自动换源的时间过长时会终止换源自动切歌的问题

This commit is contained in:
lyswhut
2021-01-11 16:21:08 +08:00
parent 74ce094d79
commit f1561ddc21
2 changed files with 2 additions and 18 deletions
+1
View File
@@ -384,6 +384,7 @@ export default {
if (!this.musicInfo.songmid) return
console.log('出错')
this.stopPlay()
this.clearLoadingTimeout()
if (this.listId != 'download' && audio.error.code !== 1 && this.retryNum < 2) { // 若音频URL无效则尝试刷新2次URL
// console.log(this.retryNum)
if (!this.restorePlayTime) this.restorePlayTime = audio.currentTime // 记录出错的播放时间