feat(v2): add MPRIS, gapless, and prefetch V2 commands

V2 Playback Features:
- v2_set_media_metadata: Update MPRIS metadata
- v2_play_next_gapless: Queue next track for gapless playback
- v2_prefetch_track: Pre-download track into memory cache

V2 Command Updates:
- v2_pause/resume/stop: Now update MPRIS state
- v2_seek: Updates MPRIS progress
- v2_get_playback_state: Updates MPRIS progress on poll

Frontend Migration:
- playbackService: Use v2_set_media_metadata
- playerStore: Use v2_play_next_gapless
This commit is contained in:
vicrodh committed 2026-02-14 22:42:03 -06:00
1 parent 6778ef4ba6
commit 82a81e1ded
4 files changed
+217 -7

No files matched your search

+1 -1
View File
@@ -653,7 +653,7 @@ async function handlePlaybackEvent(event: PlaybackEvent): Promise<void> {
if (nextId && nextId > 0) {
gaplessRequestInFlight = true;
console.log('[Gapless] Backend ready, queueing track', nextId);
invoke<boolean>('play_next_gapless', { trackId: nextId })
invoke<boolean>('v2_play_next_gapless', { trackId: nextId })
.then((queued) => {
if (queued) {
console.log('[Gapless] Track', nextId, 'queued successfully');