mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-10 00:02:16 +08:00
播放的一开始就先清空onlineUrl,否则播放iptv会有问题
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user