From 18db5a1eb02ebdaf68a3f3bef3eb2032571cf4e8 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sun, 15 Nov 2020 16:05:08 +0100 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E4=BD=93=E5=8C=96HlsJsPlayer,?= =?UTF-8?q?=E8=80=8C=E9=9D=9E=E6=9B=B4=E5=BA=95=E5=B1=82=E4=B8=80=E7=82=B9?= =?UTF-8?q?=E7=9A=84Hls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 6 +++--- src/mini/Mini.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 92d8177..c29c2af 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -177,7 +177,7 @@ import { mapMutations } from 'vuex' import { star, history, setting, shortcut, mini, iptv, sites } from '../lib/dexie' import zy from '../lib/site/tools' import Player from 'xgplayer' -import Hls from 'xgplayer-hls.js' +import HlsJsPlayer from 'xgplayer-hls.js' import mt from 'mousetrap' import { directive as onClickaway } from 'vue-clickaway' import { exec, execFile } from 'child_process' @@ -1187,7 +1187,7 @@ export default { this.right.list = [] this.getAllhistory() setTimeout(() => { - this.xg = new Hls(this.config) + this.xg = new HlsJsPlayer(this.config) this.playerInstall() this.bindEvent() }, 1000) @@ -1248,7 +1248,7 @@ export default { }, mounted () { this.playerInstall() - this.xg = new Hls(this.config) + this.xg = new HlsJsPlayer(this.config) ipcRenderer.on('miniClosed', async () => { const db = await history.find({ site: this.video.key, ids: this.video.info.id }) if (db) { diff --git a/src/mini/Mini.vue b/src/mini/Mini.vue index b72c242..86cd432 100644 --- a/src/mini/Mini.vue +++ b/src/mini/Mini.vue @@ -46,7 +46,7 @@ import zy from '../lib/site/tools' import { history, setting, shortcut, mini } from '../lib/dexie' import mt from 'mousetrap' import 'xgplayer' -import Hls from 'xgplayer-hls.js' +import HlsJsPlayer from 'xgplayer-hls.js' const { remote, ipcRenderer } = require('electron') const VIDEO_DETAIL_CACHE = {} export default { @@ -400,7 +400,7 @@ export default { } }, mounted () { - this.xg = new Hls(this.config) + this.xg = new HlsJsPlayer(this.config) this.mtEvent() this.getUrls() },