Skip to content

Commit

Permalink
[bug] fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed Feb 23, 2025
1 parent 29e6d5a commit 6f77b92
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default defineConfig(({ mode }: ConfigEnv) => {
artplayer: ['artplayer', 'artplayer-plugin-danmuku'],
dplayer: ['dplayer'],
nplayer: ['nplayer', '@nplayer/danmaku'],
oplayer: ['@oplayer/core', '@oplayer/plugins', '@oplayer/danmaku', '@oplayer/hls', '@oplayer/ui', '@oplayer/dash', '@oplayer/mpegts', '@oplayer/torrent'],
oplayer: ['@oplayer/core', '@oplayer/plugins', '@oplayer/danmaku', '@oplayer/hls', '@oplayer/ui', '@oplayer/dash', '@oplayer/mpegts'],
'video-decoder': ['dashjs', 'flv.js', 'hls.js', 'mpegts.js','shaka-player'],
tdesign: ['tdesign-vue-next', 'tdesign-icons-vue-next', '@tdesign-vue-next/chat'],
md: ['markdown-it', 'highlight.js', 'markdown-it-mathjax3'],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
"@oplayer/dash": "^1.2.27-beta.1",
"@oplayer/hls": "^1.2.28-beta.1",
"@oplayer/mpegts": "^1.2.26-beta.0",
"@oplayer/torrent": "^1.2.25-beta.2",
"@oplayer/plugins": "^1.0.15-beta.3",
"@oplayer/torrent": "^1.2.25-beta.2",
"@oplayer/ui": "^1.3.4-beta.3",
"@swc/core": "^1.10.18",
"@tdesign-vue-next/chat": "^0.1.4",
Expand Down Expand Up @@ -141,6 +141,7 @@
"luna-data-grid": "^1.3.0",
"luna-dom-viewer": "^1.4.0",
"luna-object-viewer": "^0.3.1",
"m3u8-parser": "^7.2.0",
"markdown-it": "^14.1.0",
"markdown-it-mathjax3": "^4.3.2",
"mime-types": "^2.1.35",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/player/src/core/artplayer.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Artplayer from 'artplayer';
import artplayerPluginDanmuku from 'artplayer-plugin-danmuku';

import publicStream from '../utils/media-stream';
import { publicBarrageSend, playerStorage } from '../utils/tool';
import { publicColor, publicIcons } from '../utils/static';
import emitter from '@/utils/emitter';


class ArtPlayerAdapter {
player: Artplayer | null = null;
options: { [key: string]: any } = {
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/components/player/src/core/dplayer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import DPlayer from 'dplayer';

import publicStream from '../utils/media-stream';
import { playerStorage } from '../utils/tool';
import { publicIcons } from '../utils/static';
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/components/player/src/core/nplayer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import NPlayer, { EVENT as NPlayerEvent, Icon as NPlayerIcon } from 'nplayer';
import nplayerDanmaku from '@nplayer/danmaku';

import publicStream from '../utils/media-stream';
import { publicBarrageSend, playerStorage } from '../utils/tool';
import { publicIcons } from '../utils/static';
Expand Down
4 changes: 1 addition & 3 deletions src/renderer/src/components/player/src/core/oplayer.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import OPlayer from '@oplayer/core';
import { Chromecast, AirPlay, Playlist, ad, vttThumbnails } from '@oplayer/plugins';
// import { Chromecast, AirPlay, Playlist, ad, vttThumbnails } from '@oplayer/plugins';
import OUI from '@oplayer/ui';
import ODanmaku from '@oplayer/danmaku';
import OHls from '@oplayer/hls';
import ODash from '@oplayer/dash';
import OMpegts from '@oplayer/mpegts';
// import OTorrent from '@oplayer/torrent';


import { publicBarrageSend, playerStorage } from '../utils/tool';
import { publicColor, publicIcons } from '../utils/static';
import emitter from '@/utils/emitter';


class OPlayerAdapter {
player: OPlayer | null = null;
options: { [key: string]: any } = {
Expand Down

0 comments on commit 6f77b92

Please sign in to comment.