播放的一开始就先清空onlineUrl,否则播放iptv会有问题

This commit is contained in:
haiyangcui
2020-12-24 16:22:51 +01:00
parent 06291ffc4b
commit 11c756466c

View File

@@ -508,6 +508,7 @@ export default {
return false
}
this.name = ''
this.onlineUrl = ''
if (this.timer !== null) {
clearInterval(this.timer)
this.timer = null
@@ -575,7 +576,6 @@ export default {
},
playVideo (index = 0, time = 0) {
this.isLive = false
this.onlineUrl = ''
if (document.querySelector('xg-btn-showhistory')) document.querySelector('xg-btn-showhistory').style.display = 'block'
if (document.querySelector('.xgplayer-playbackrate')) document.querySelector('.xgplayer-playbackrate').style.display = 'inline-block'
this.fetchM3u8List().then(m3u8Arr => {