From ec4980a4b6518e3453c1c3395541ba18a4116281 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Thu, 21 Jan 2021 22:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=91=E5=B1=8F=E6=9C=89=E5=A3=B0=E9=9F=B3?= =?UTF-8?q?=E6=97=B6=E5=B0=BD=E9=87=8F=E9=81=BF=E5=85=8D=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/Play.vue b/src/components/Play.vue index b4ddb88..5d7494f 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -600,6 +600,10 @@ export default { this.xg.src = channel.url this.xg.play() this.changingIPTV = false + if (!document.getElementById('xgplayer').querySelector('video')) { + this.getPlayer(this.playerType, true) + this.playChannel(channel) + } if (document.querySelector('xg-btn-showhistory')) document.querySelector('xg-btn-showhistory').style.display = 'none' if (document.querySelector('.xgplayer-playbackrate')) document.querySelector('.xgplayer-playbackrate').style.display = 'none' }, @@ -658,6 +662,10 @@ export default { const key = this.video.key + '@' + this.video.info.id const startTime = VIDEO_DETAIL_CACHE[key].startPosition || 0 this.xg.play() + if (!document.getElementById('xgplayer').querySelector('video')) { + this.getPlayer(this.playerType, true) + this.getUrls() + } 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.xg.once('playing', () => {