Browse Source

Recheck player pos when using prev-track (#249)

master
jeffvli 3 years ago
parent
commit
6cf2be8914
  1. 4
      src/hooks/usePlayerControls.ts

4
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,

Loading…
Cancel
Save