Skip to content

Commit

Permalink
delete text code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed May 12, 2024
1 parent 22d7612 commit 2f2ad19
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/renderer/src/pages/Play.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand All @@ -548,7 +549,7 @@ const createPlayer = async (url: string, videoType: string = '') => {
setSystemMediaInfo(); // 设置系统媒体信息
// setTimeout(()=>{
// offPlayerTimeUpdate(player, playerMode.type);
// offPlayerTimeUpdate(player, playerMode.type);
// }, 6000)
};
Expand Down Expand Up @@ -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 }) => {
Expand Down

0 comments on commit 2f2ad19

Please sign in to comment.