From b8f010c4f5588527f7a75619b8f177d869f08538 Mon Sep 17 00:00:00 2001
From: buvta <12312540+buvta@users.noreply.github.com>
Date: Sat, 21 Nov 2020 13:16:41 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4Play=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 2 +-
src/components/Play.vue | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 38aaff5..3320eea 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/components/Play.vue b/src/components/Play.vue
index fc61b14..d3d4533 100644
--- a/src/components/Play.vue
+++ b/src/components/Play.vue
@@ -391,7 +391,7 @@ export default {
this.right.type = ''
if (this.view === 'Play') {
this.getChannelList()
- if (this.video.key === '') this.channelListShow = true
+ if (this.video.key === '' && !this.video.iptv) this.channelListShow = true
}
},
video: {
@@ -478,7 +478,7 @@ export default {
},
async getUrls () {
if (this.video.key === '') {
- this.channelListShow = true
+ if (!this.video.iptv) this.channelListShow = true
return false
}
this.name = ''
@@ -494,7 +494,7 @@ export default {
// 是直播源,直接播放
this.playChannel(this.video.iptv)
} else {
- this.iptvMode = false
+ this.channelListShow = false
const index = this.video.info.index | 0
var time = this.video.info.time
if (!time) {
@@ -1396,7 +1396,7 @@ export default {
async mounted () {
const db = await setting.find()
this.playerInstall()
- this.config.volume = db.volume
+ this.config.volume = db.volume ? db.volume : 0.6
this.xg = new HlsJsPlayer(this.config)
this.bindEvent()
this.minMaxEvent()