From 2f2ad192fd7e2b6ef4f187ca14fc7493b5c536bc Mon Sep 17 00:00:00 2001 From: Hiram <> Date: Sun, 12 May 2024 19:06:55 +0800 Subject: [PATCH] delete text code --- src/renderer/src/pages/Play.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/pages/Play.vue b/src/renderer/src/pages/Play.vue index 3d8563fa5..9bba320b4 100644 --- a/src/renderer/src/pages/Play.vue +++ b/src/renderer/src/pages/Play.vue @@ -354,7 +354,7 @@ import { computed, onMounted, ref, reactive, shallowRef, toRaw } from 'vue'; import { setDefault } from '@/api/setting'; import { fetchChannelList } from '@/api/iptv'; -import { checkUrlIpv6 } from '@/utils/tool'; +import { checkUrlIpv6, getLocalStorage } from '@/utils/tool'; import { playerBarrage, playerCreate, playerDestroy, playerNext, playerSeek, playerPause, playerTimeUpdate, offPlayerTimeUpdate } from '@/utils/common/player'; import { fetchBingeData, @@ -526,6 +526,7 @@ const createPlayer = async (url: string, videoType: string = '') => { artplayer: '#mse', dplayer: document.getElementById('mse'), nplayer: '#mse', + ckplayer: '#mse', }; player = await playerCreate(url, type.value, containers[playerMode.type], playerMode.type, videoType) as any; if (tmp.skipTime) playerSeek(player, playerMode.type, tmp.skipTime); @@ -548,7 +549,7 @@ const createPlayer = async (url: string, videoType: string = '') => { setSystemMediaInfo(); // 设置系统媒体信息 // setTimeout(()=>{ - // offPlayerTimeUpdate(player, playerMode.type); + // offPlayerTimeUpdate(player, playerMode.type); // }, 6000) }; @@ -825,11 +826,7 @@ const timerUpdatePlayProcess = () => { }; }; - console.log( - `[player][timeUpdate] - current:${currentTime}; watch:${watchTime}; duration:${duration}; percentage:${Math.trunc( - (currentTime / duration) * 100, - )}%`, - ); + if (getLocalStorage('player:process')) console.log(`[player][timeUpdate] - current:${currentTime}; watch:${watchTime}; duration:${duration}; percentage:${Math.trunc((currentTime / duration) * 100)}%`); }; playerTimeUpdate(player, playerMode.type, ({ currentTime, duration }) => {