fix windows spotify native hooks

This commit is contained in:
Boof2015
2026-04-19 18:43:54 -04:00
parent da520de981
commit 677c4aa331
8 changed files with 457 additions and 160 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { NativeCaptureSupport } from './nativeCapture'
import type { NowPlayingControlCommand } from './nowPlaying'
export type NativeWindowsMediaSupport = NativeCaptureSupport
export interface NativeWindowsSpotifyPlaybackState {
album: string
artist: string
durationMs: number
playbackStatus: string
positionMs: number
sourceAppUserModelId: string
title: string
}
export interface NativeWindowsMediaAPI {
getSupport: () => NativeWindowsMediaSupport
getSpotifyPlaybackState: () => NativeWindowsSpotifyPlaybackState | null
sendSpotifyControl: (command: NowPlayingControlCommand) => boolean
}