From 1e7199af3f9e298aa0b663a84f4163f9529f4063 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Wed, 20 Jan 2021 18:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=B9=E5=8A=A8flv?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E7=8A=B6=E6=80=81=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index d255e9a..848875f 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -596,7 +596,7 @@ export default { const supportFormats = /\.(m3u8|flv)$/ const extRE = channel.url.match(supportFormats) || new URL.URL(channel.url).pathname.match(supportFormats) this.getPlayer(extRE[1]) - this.xg.config.isLive = true + if (extRE[1] === 'flv') this.xg.config.isLive = true this.xg.src = channel.url this.xg.play() this.changingIPTV = false @@ -656,7 +656,6 @@ export default { const ext = url.match(/\.\w+?$/)[0].slice(1) this.getPlayer(ext) } - this.xg.config.isLive = false this.xg.src = url const key = this.video.key + '@' + this.video.info.id const startTime = VIDEO_DETAIL_CACHE[key].startPosition || 0