From 214a267ba5a6b93d131d477348876d08f8193335 Mon Sep 17 00:00:00 2001 From: hunlongyu Date: Fri, 29 May 2020 14:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=A5=20=E7=B4=A7=E6=80=A5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/Play.vue | 6 +++++- src/lib/cloud/index.js | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2ac6206..2561374 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zy", - "version": "1.0.12", + "version": "1.0.13", "private": true, "author": { "name": "Hunlongyu", diff --git a/src/components/Play.vue b/src/components/Play.vue index 7b956c2..efd34cb 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -211,7 +211,7 @@ export default { } this.changeVideo() history.find({ detail: this.video.detail }).then(item => { - let index = 1 + let index = 0 let time = 0 if (item) { index = item.index @@ -224,10 +224,12 @@ export default { this.right.listData = res.m3u8_urls const m = res.m3u8_urls + console.log(m, 'm3u8 url') const arr = [] for (const i of m) { arr.push(i.split('$')[1]) } + console.log(arr) this.length = arr.length this.xg.src = arr[index] this.showNext = this.length > 1 @@ -252,6 +254,8 @@ export default { } this.xg.off('ended') }) + + console.log(this.xg.src, 'src') }) }) }, diff --git a/src/lib/cloud/index.js b/src/lib/cloud/index.js index eaf2802..3fc2bca 100644 --- a/src/lib/cloud/index.js +++ b/src/lib/cloud/index.js @@ -22,6 +22,7 @@ macaddress.one((err, mac) => { const zyPlayer = new ZYPlayer() zyPlayer.set('os', system) zyPlayer.set('mac', mac) + zyPlayer.set('times', 1) zyPlayer.save() return false }