temporarily remove old player implementations to prevent broken app

This commit is contained in:
jeffvli
2025-11-02 01:40:20 -08:00
parent 4e3a3742a5
commit 9abda23a4a
42 changed files with 2571 additions and 2598 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ import {
} from './utils';
import './features';
import { PlaybackType, TitleTheme } from '/@/shared/types/types';
import { PlayerType, TitleTheme } from '/@/shared/types/types';
export default class AppUpdater {
constructor() {
@@ -549,9 +549,9 @@ async function createWindow(first = true): Promise<void> {
}
const enableWindowsMediaSession = store.get('mediaSession', false) as boolean;
const playbackType = store.get('playbackType', PlaybackType.WEB) as PlaybackType;
const playbackType = store.get('playbackType', PlayerType.WEB) as PlayerType;
const shouldDisableMediaFeatures =
!isWindows() || !enableWindowsMediaSession || playbackType !== PlaybackType.WEB;
!isWindows() || !enableWindowsMediaSession || playbackType !== PlayerType.WEB;
if (shouldDisableMediaFeatures) {
app.commandLine.appendSwitch(
'disable-features',