mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-12 06:56:19 +08:00
停止时默认生成hls播放器,使停止播放mp4时“播放”可用
This commit is contained in:
@@ -619,7 +619,7 @@ export default {
|
||||
this.config.url = ''
|
||||
}
|
||||
try {
|
||||
this.xg.destroy()
|
||||
if (this.xg) this.xg.destroy()
|
||||
} catch (err) { }
|
||||
this.xg = null
|
||||
switch (playerType) {
|
||||
@@ -1558,12 +1558,8 @@ export default {
|
||||
this.state.showTimespanSetting = false
|
||||
this.right.list = []
|
||||
this.getAllhistory()
|
||||
if (this.playerType !== 'flv') {
|
||||
this.getPlayer(this.playerType, true)
|
||||
} else {
|
||||
this.xg.destroy()
|
||||
this.getPlayer('hls', true)
|
||||
}
|
||||
if (this.playerType === 'flv') this.xg.destroy()
|
||||
this.getPlayer('hls', true)
|
||||
},
|
||||
minMaxEvent () {
|
||||
win.on('minimize', () => {
|
||||
|
||||
Reference in New Issue
Block a user