Commit Graph
5263 Commits
Author SHA1 Message Date
vicrodh b4ebad20c5 Revert "fix(qconnect): suppress local playback automation when connected"
This reverts commit b5ab4cd148.
2026-03-15 23:23:57 -06:00
vicrodh 9c14a76975 fix: make mupdf optional to unblock build on Arch Linux
mupdf-sys 0.5.0 bindings are incompatible with the current system
MuPDF library (struct size assertions overflow). Gate mupdf behind
a booklet feature flag (disabled by default). When disabled, booklet
commands return an error instead of crashing the build.

cc
2026-03-15 13:48:35 -06:00
vicrodh a3cde0449d feat: wire autoplay mode sync to QConnect
- setAutoplayMode now sends autoplay preference to QConnect server
- queue_load_tracks syncs local autoplay mode after loading
- QConnect panel shows autoplay_mode status
2026-03-15 10:32:59 -06:00
vicrodh 87be5fbf16 feat: add set_autoplay_mode and autoplay_load_tracks remote commands
Backend _if_remote methods for QConnect autoplay protocol:
- set_autoplay_mode_if_remote: toggles autoplay on the QConnect server
- autoplay_load_tracks_if_remote: loads track IDs into the autoplay pool
Both follow the established _if_remote pattern with diagnostics.
2026-03-15 09:46:01 -06:00
vicrodh 8e2bb021c2 fix: guard re-bootstrap with has_disconnected flag
Prevents double-bootstrap on initial connect. The Subscribed
handler now only calls bootstrap_remote_presence when the
connection was previously lost (has_disconnected=true), not
on the first connect where connect() already bootstraps.
Also sets has_disconnected=true in the Disconnected handler.
2026-03-15 09:21:41 -06:00
vicrodh 8e87b414db feat(qconnect): route volume/mute to peer renderer when remote is active
New _if_remote backend commands for set_volume and mute_volume.
handleVolumeChange and handleToggleMute in both main view and miniplayer
now check for peer renderer before setting volume locally.  Media
control set_volume also routed through the guard.  When no peer is
active, volume is set locally and reported to QConnect server.
2026-03-15 09:14:07 -06:00
vicrodh 1fc2e79391 feat(qconnect): add stop_if_remote guard for media control stop action
When a peer renderer is active, the MPRIS/media-key stop command now
sends SetPlayerState(STOPPED) to the QConnect server instead of stopping
local playback.  Falls back to local stop on error or when no peer is
active.
2026-03-15 07:27:32 -06:00
vicrodh e5155f2baa refactor: homologate seek to preview+commit in ImmersivePlayer and Miniplayer
Replace immediate seek-on-drag with the NowPlayingBar pattern:
preview the position visually during drag, commit the seek only on
mouseup.  Both PlayerControlsCompact and MiniPlayerFooter now use
dragPreviewTime/effectiveTime, matching NowPlayingBar behavior.
2026-03-14 23:22:09 -06:00
vicrodh 6bb416f854 refactor: centralize mute in ImmersivePlayer and Miniplayer via playerStore.toggleMute
Replace local isMuted/previousVolume state in PlayerControlsCompact and
MiniPlayerFooter with the global toggleMute from playerStore.  Muted
state is now derived from volume === 0, matching NowPlayingBar behavior.
Pre-mute volume is persisted in localStorage by the store.
2026-03-14 22:53:43 -06:00
vicrodh d21f2253bc feat(qconnect): add QConnect guards to shuffle, repeat, queue play, and history play handlers
When a peer renderer is active, shuffle/repeat/queue-play/history-play
commands are now routed to the QConnect server instead of being applied
locally.  Two new backend commands (toggle_shuffle_if_remote,
cycle_repeat_if_remote) follow the existing _if_remote pattern.
Guards added to both +page.svelte (main + immersive) and miniplayer.
2026-03-14 22:44:31 -06:00
vicrodh b5ab4cd148 fix(qconnect): suppress local playback automation when connected
When QBZ is the local renderer in a QConnect session and the web player
presses next, the server sends SET_STATE with the new track. The backend
correctly starts playback, but the frontend's gapless transition handler
saw the track_id change, treated it as a local gapless event, and called
nextTrack() — which advanced the CoreBridge queue every 1s polling cycle,
flooding the queue and destroying the shuffle order.

Root cause: shouldQconnectSuppressLocalPlaybackAutomation only suppressed
when a peer renderer was active (activeRendererId !== localRendererId).
When QBZ IS the renderer, remoteControlMode stayed false, so all local
automation (gapless, auto-advance, resume-from-stop) remained active and
fought the server.

Fix: suppress local playback automation whenever QConnect is connected,
regardless of which renderer is active. The server is the authority for
track transitions in all QConnect scenarios.

cc
2026-03-14 22:09:50 -06:00
vicrodh 3b3dbc7ce1 fix(qconnect): trigger resync on reorder and remove server events
SrvrCtrlQueueTracksReordered and SrvrCtrlQueueTracksRemoved were not
triggering AskForQueueState, so the local queue never reflected
reorder/remove actions performed via QConnect. Same pattern as the
existing shuffle resync.

cc
2026-03-14 21:34:03 -06:00
Victor RH ee1459a0f1 Update funding information in FUNDING.yml 2026-03-14 21:07:43 -06:00
vicrodh 66b5288150 fix(qconnect): use authoritative queue mutations
cx
2026-03-14 19:29:11 -06:00
vicrodh 311b7269ee fix(qconnect): keep gapless enabled for local renderer
cx
2026-03-14 17:57:46 -06:00
vicrodh 52e3653dc3 fix(qconnect): complete repeat pending on loop ack
cx
2026-03-14 13:25:22 -06:00
vicrodh 8a468ed725 fix(qconnect): restore local repeat renderer flow
cx
2026-03-14 13:09:23 -06:00
vicrodh f47f691063 fix(qconnect): allow rapid repeat toggles
cx
2026-03-14 12:07:11 -06:00
vicrodh e6a20b02e8 fix(qconnect): align repeat loop mode mapping
cx
2026-03-14 11:43:31 -06:00
vicrodh 0529f355e8 fix(qconnect): reanchor repeat state before toggles
cx
2026-03-14 07:55:42 -06:00
vicrodh 7a11b6548c fix(qconnect): anchor remote shuffle projection
cx
2026-03-14 07:32:46 -06:00
vicrodh 8b950da5c9 fix(qconnect): honor remote shuffle order for next
cx
2026-03-14 00:59:51 -06:00
vicrodh f693d1c61a fix(qconnect): wait for authoritative repeat mode
cx
2026-03-14 00:12:47 -06:00
vicrodh 6805b4f61a fix(qconnect): reapply authoritative queue snapshots
cx
2026-03-13 23:22:25 -06:00
vicrodh a59daf43dc fix(qconnect): resync queue after shuffle mode changes
cx
2026-03-13 23:13:16 -06:00
vicrodh cf2447f4b2 fix(qconnect): stop deriving remote shuffle locally
cx
2026-03-13 23:07:22 -06:00
vicrodh af7652c86b fix(qconnect): wait for authoritative shuffle queue
cx
2026-03-13 22:54:27 -06:00
vicrodh 19b4182dd6 fix(qconnect): render connect queue in remote shuffle order
cx
2026-03-13 22:45:56 -06:00
vicrodh 4312bf0524 fix(qconnect): refresh queue store from backend events
cx
2026-03-13 20:51:44 -06:00
vicrodh 1fc7a0a1a3 fix(qconnect): materialize remote shuffle atomically
cx
2026-03-13 20:43:56 -06:00
vicrodh b28fd39737 fix(qconnect): trust remote shuffle order
cx
2026-03-13 20:35:56 -06:00
vicrodh 09c6d8f1f8 fix(qconnect): route shuffle and repeat through runtime
cx
2026-03-13 20:28:11 -06:00
vicrodh 2efa1b0809 fix(qconnect): route clear queue through runtime
cx
2026-03-13 20:00:57 -06:00
vicrodh f72a4db7be chore(qconnect): checkpoint stable handoff state
cx
2026-03-13 19:52:12 -06:00
vicrodh d3d0fe491a fix(qconnect): stream local handoff playback
cx
2026-03-13 18:52:30 -06:00
vicrodh f18bd10aa4 fix(qconnect): complete active-renderer pending on session ack
cx
2026-03-13 18:50:04 -06:00
vicrodh 0a9064aa24 fix(qconnect): keep local renderer queue ids in interval reports
cx
2026-03-13 17:38:52 -06:00
vicrodh de29f1e2e0 chore(qconnect): checkpoint current poc state
cx
2026-03-13 17:28:05 -06:00
vicrodh 6d20360dc3 fix(qconnect): prefer session cursor for active renderer snapshot
cx
2026-03-13 15:07:50 -06:00
vicrodh fcadb85e65 fix(qconnect): unblock rapid transport controls and stop local audio on handoff
cx
2026-03-13 13:19:53 -06:00
vicrodh 017aa9a6b1 fix(qconnect): sync remote renderer into qbz ui
cx
2026-03-13 12:51:33 -06:00
vicrodh 65a0d523bb fix(qconnect): track active remote renderer state for skip and seekbar
cx
2026-03-13 11:55:48 -06:00
vicrodh 4098c18d89 fix(qconnect): clear pending active-renderer action on ack
cx
2026-03-13 11:08:28 -06:00
vicrodh 0da98aab8c fix(qconnect): hand off queue-start playback to remote renderer
cx
2026-03-13 10:45:37 -06:00
vicrodh 145974c292 fix(qconnect): harden renderer handoff identity
cx
2026-03-13 10:20:54 -06:00
vicrodh 3c688f129e fix(qconnect): backendize remote skip handoff
cx
2026-03-13 09:59:19 -06:00
vicrodh 4629e776f1 fix(qconnect): hand off play toggle to active renderer
cx
2026-03-12 23:49:33 -06:00
vicrodh c83aedac75 fix(qconnect): align renderer state with official queue semantics
cx
2026-03-12 23:10:31 -06:00
vicrodh e748ab6616 fix(qconnect): treat omitted cloud queue ids as zero
cx
2026-03-12 20:56:56 -06:00
vicrodh 6cdacd0c29 fix(qconnect): report queue drift after inserts
cx
2026-03-12 20:33:42 -06:00