From 6cf2be891441aad5ee50c5c25fc685fcbfbae715 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 10 Mar 2022 13:43:37 -0800 Subject: [PATCH] Recheck player pos when using prev-track (#249) --- src/hooks/usePlayerControls.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hooks/usePlayerControls.ts b/src/hooks/usePlayerControls.ts index ee9d037..c8b3f3f 100644 --- a/src/hooks/usePlayerControls.ts +++ b/src/hooks/usePlayerControls.ts @@ -70,6 +70,8 @@ const usePlayerControls = ( playersRef.current.player2.audioEl.current.volume = 0; playersRef.current.player2.audioEl.current.pause(); + ipcRenderer.send('seeked', 0); + if (config.serverType === Server.Jellyfin && playQueue.scrobble) { apiController({ serverType: config.serverType, @@ -91,6 +93,8 @@ const usePlayerControls = ( playersRef.current.player1.audioEl.current.volume = 0; playersRef.current.player1.audioEl.current.pause(); + ipcRenderer.send('seeked', 0); + if (config.serverType === Server.Jellyfin && playQueue.scrobble) { apiController({ serverType: config.serverType,