Phase 3 abgeschlossen

Fix: Streamlink auth header entfernt, mpv-Pfad explizit aufgelöst
Livestream wird kann jetzt abgespielt werden
This commit is contained in:
Andre
2026-04-08 17:44:48 +02:00
parent 60d4b4ace7
commit 3e8e5c2078
15 changed files with 773 additions and 182 deletions
+8 -1
View File
@@ -2,6 +2,7 @@ import { app, BrowserWindow, shell } from 'electron'
import { join } from 'node:path'
import { AuthService } from './auth/authService'
import { HelixClient } from './twitch/helixClient'
import { PlaybackService } from './playback/playbackService'
import { registerIpcHandlers } from './ipc/handlers'
const isDev = !app.isPackaged
@@ -44,7 +45,13 @@ app.whenReady().then(async () => {
const auth = new AuthService(clientId)
await auth.init()
const helix = new HelixClient(clientId, () => auth.getValidAccessToken())
registerIpcHandlers(auth, helix)
const playback = new PlaybackService()
registerIpcHandlers(auth, helix, playback)
app.on('before-quit', () => {
playback.stopAll()
})
if (!clientId) {
console.warn(