From 1565d39ba7599b66b7e4d916e0d24610e7059318 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Wed, 7 Oct 2020 22:16:11 +0200 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=82=B9=E5=87=BB=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=87=8C=E7=9A=84=E9=A2=91=E9=81=93=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 6ac6133..a7839cc 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -298,7 +298,7 @@ export default { } } if (this.video.iptv && this.video.iptv.url) { - // 如果info里含有有url,是直播源,直接播放 + // 是直播源,直接播放 this.playUrl(this.video.iptv.url) this.getIptvList() } else { @@ -660,10 +660,16 @@ export default { }) }, listItemEvent (n) { - this.video.info.time = 0 - this.video.info.index = n - this.right.show = false - this.right.type = '' + if (this.video.iptv) { + var channel = this.iptvList[n] + // 是直播源,直接播放 + this.playUrl(channel.url) + } else { + this.video.info.time = 0 + this.video.info.index = n + this.right.show = false + this.right.type = '' + } }, historyItemEvent (e) { this.video = {