Browse Source

Reduce currentTime interval

master
jeffvli 3 years ago
parent
commit
bde96529f0
  1. 4
      src/components/player/PlayerBar.tsx

4
src/components/player/PlayerBar.tsx

@ -83,7 +83,7 @@ const PlayerBar = () => {
} else { } else {
setSeek(playersRef.current?.player2.audioEl.current.currentTime || 0); setSeek(playersRef.current?.player2.audioEl.current.currentTime || 0);
} }
}, 500); }, 200);
return () => clearInterval(interval); return () => clearInterval(interval);
} }
@ -117,8 +117,6 @@ const PlayerBar = () => {
return; return;
} }
// You'll need to have snek_large and snek_small assets uploaded to
// https://discord.com/developers/applications/<application_id>/rich-presence/assets
discordRpc.setActivity({ discordRpc.setActivity({
details: details:
player.status === 'PLAYING' player.status === 'PLAYING'

Loading…
Cancel
Save