Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Recheck player pos when using prev-track (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Mar 10, 2022
1 parent 69324c9 commit 6cf2be8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hooks/usePlayerControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 6cf2be8

Please sign in to comment.