mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-11-05 06:49:13 +08:00
直播时隐藏历史及播放速率按钮
This commit is contained in:
@@ -518,8 +518,12 @@ export default {
|
||||
this.name = channel.name
|
||||
this.xg.src = channel.url
|
||||
this.xg.play()
|
||||
document.querySelector('xg-btn-showhistory').style.display = 'none'
|
||||
document.querySelector('.xgplayer-playbackrate').style.display = 'none'
|
||||
},
|
||||
playVideo (index = 0, time = 0) {
|
||||
document.querySelector('xg-btn-showhistory').style.display = 'block'
|
||||
document.querySelector('.xgplayer-playbackrate').style.display = 'inline-block'
|
||||
this.fetchM3u8List().then(m3u8Arr => {
|
||||
this.xg.src = m3u8Arr[index]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user