feat: Add Apple Music integration with real-time multi-user sync #60
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
This PR introduces Apple Music integration to BeatSync, allowing users to connect their Apple Music accounts, search for tracks, and play them in real-time sync with other users in a room. Playback actions (play, pause, track selection) are synchronized across all participants using the existing WebSocket infrastructure.
Features
Apple Music Authentication:
Users can connect their Apple Music accounts via MusicKit JS and sign in securely.
Track Search & Selection:
Users can search for songs, artists, or albums from the Apple Music catalog and select tracks to play.
Synchronized Playback:
When a user plays, pauses, or seeks an Apple Music track, the action is broadcast to all users in the room, ensuring everyone hears the same track at the same time.
UI Enhancements:
Protocol & Type Updates:
How to Test
Notes
.envfile asNEXT_PUBLIC_APPLE_MUSIC_DEVELOPER_TOKEN.Checklist