feat: playback controls (play/pause, skip, seek, volume, shuffle, repeat)#8
Open
feat: playback controls (play/pause, skip, seek, volume, shuffle, repeat)#8
Conversation
… repeat) - Switch GET /me/player (superset of currently-playing) to fetch shuffle, repeat, and volume state - Add 8 new Spotify API wrappers: skipNext/Previous, pause/resume, seek, setVolume, setShuffle, setRepeat - Wire up 8 new tRPC mutations that call broadcastRefresh after each action - Extend NowPlayingSchema with shuffleState, repeatState, volumePercent - Rewrite NowPlaying.tsx with clickable seek bar, play/pause, skip, shuffle toggle, repeat cycle, and volume slider Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Keep main's split/stack layout toggle and mobile single-column layout. Update nowPlayingSection variable to pass new playback control props. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getNowPlayingfromGET /me/player/currently-playingtoGET /me/playerto also receive shuffle state, repeat state, and device volumeNowPlayingSchemawithshuffleState,repeatState, andvolumePercent— new fields propagate automatically through SSE →useSessionStream→ componentskipNext,skipPrevious,pausePlayback,resumePlayback,setVolume,setShuffle,setRepeat,seekToPosition) and corresponding tRPC mutations, each triggeringbroadcastRefreshNowPlaying.tsxwith a full playback controls UI: clickable seek bar, play/pause button, skip back/forward, shuffle toggle, repeat cycle (off → all → one → off), and volume slider (committed onpointerUpto avoid API spam)Test plan
bun run typecheckpasses🤖 Generated with Claude Code