From 1f65e5ba0ad911a9c6255e39284d0a5c75fd509b Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Thu, 24 Dec 2020 15:44:14 +0100 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=92=AD=E6=94=BE=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=88=A9=E7=94=A8iframe=E5=B5=8C=E5=85=A5=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E8=A7=A3=E6=9E=90=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index b2bd170..e818b52 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -4,9 +4,14 @@
『第 {{(video.info.index + 1)}} 集』{{name}}
-
+
+
+ +
@@ -355,7 +360,8 @@ export default { startPosition: { min: '00', sec: '00' }, // 对应调略输入框 endPosition: { min: '00', sec: '00' }, skipendStatus: false, // 是否跳过了片尾 - currentShortcutList: [] + currentShortcutList: [], + onlineUrl: '' } }, filters: { @@ -569,14 +575,13 @@ export default { }, playVideo (index = 0, time = 0) { this.isLive = false + this.onlineUrl = '' 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.fetchM3u8List().then(m3u8Arr => { const url = m3u8Arr[index] if (!m3u8Arr[index].endsWith('.m3u8')) { - const onlineUrl = 'https://jx.7kjx.com/?url=' + url - const open = require('open') - open(onlineUrl) + this.onlineUrl = 'https://jx.7kjx.com/?url=' + url } else { this.xg.src = m3u8Arr[index] const key = this.video.key + '@' + this.video.info.id