feat: add Live Listen support to iPod (Remote Control)#962
Draft
feat: add Live Listen support to iPod (Remote Control)#962
Conversation
- Add listenSessionId to IpodInitialData type - Integrate useListenSync hook for real-time playback sync across clients - Add session management (create/join/leave/pass DJ/reactions) - Add Live Listen menu items to iPod File menu - Add ListenSessionBadge, ListenSessionToolbar, and ReactionOverlay - Add ListenSessionInvite and JoinSessionDialog - Update route registry to support ?app=ipod for /listen/ URLs - Handle listenSessionId in initial data and app update events Co-authored-by: Ryo Lu <me@ryo.lu>
|
The preview deployment for ryos-dev is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-03-15 01:37:25 CET |
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
Adds Live Listen (listen-together) support to the iPod app, enabling real-time playback sync across different clients/instances. Previously this feature was only available in the Karaoke app.
Changes
Types
listenSessionIdtoIpodInitialDatain bothsrc/apps/base/types.tsandsrc/types/appInitialData.tsRoute Registry
/listen/:sessionIdroute to respect?app=ipodquery param, allowing listen session links to open in iPod instead of always defaulting to KaraokeiPod Logic (
useIpodLogic.ts)useListenSynchook for real-time playback synchronization (track, play/pause, position drift correction)useListenSessionStoresubscription for session state (DJ status, listener count, etc.)listenSessionIdhandling in initial data and app update eventsiPod Menu Bar (
IpodMenuBar.tsx)iPod App Component (
IpodAppComponent.tsx)ListenSessionBadgefor non-fullscreen session indicatorListenSessionToolbarwith DJ controls, reactions, and share button in fullscreenReactionOverlayfor animated emoji reactions in fullscreenListenSessionInvitedialog with QR code and share linkJoinSessionDialogfor browsing/joining active sessionsHow It Works
?app=ipodto open in iPod)Testing
bun run build)bun run test:unit- 89/89)