停止时默认生成hls播放器,使停止播放mp4时“播放”可用

This commit is contained in:
buvta
2021-01-24 15:34:55 +08:00
parent c08ae7666c
commit 443cdc59fc

View File

@@ -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', () => {