Add queue handler

Initial support for play "now", "next", and "last"
This commit is contained in:
jeffvli
2022-07-31 05:24:33 -07:00
parent 9c9cf3a978
commit e1bc6ecf30
10 changed files with 148 additions and 108 deletions
+4 -3
View File
@@ -5,6 +5,7 @@ declare global {
interface Window {
electron: {
ipcRenderer: {
PLAYER_AUTO_NEXT(data: PlayerData): void;
PLAYER_CURRENT_TIME(): void;
PLAYER_MUTE(): void;
PLAYER_NEXT(): void;
@@ -17,6 +18,9 @@ declare global {
PLAYER_SET_QUEUE_NEXT(data: PlayerData): void;
PLAYER_STOP(): void;
PLAYER_VOLUME(value: number): void;
RENDERER_PLAYER_AUTO_NEXT(
cb: (event: IpcRendererEvent, data: any) => void
): void;
RENDERER_PLAYER_CURRENT_TIME(
cb: (event: IpcRendererEvent, data: any) => void
): void;
@@ -26,9 +30,6 @@ declare global {
RENDERER_PLAYER_PLAY(
cb: (event: IpcRendererEvent, data: any) => void
): void;
RENDERER_PLAYER_SET_QUEUE_NEXT(
cb: (event: IpcRendererEvent, data: any) => void
): void;
RENDERER_PLAYER_STOP(
cb: (event: IpcRendererEvent, data: any) => void
): void;