mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-20 20:39:59 +02:00
fix windows spotify native hooks
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user