fix(remote): proper image when mpris and remote interleave

This commit is contained in:
Kendall Garner
2026-01-18 18:18:36 -08:00
parent 1c6ee88912
commit 04f7c7fdd4
4 changed files with 11 additions and 6 deletions
@@ -31,5 +31,5 @@ export const updateSong = (song: QueueSong | undefined, imageUrl?: null | string
mediaSession.metadata = metadata;
}
remote?.updateSong(song);
remote?.updateSong(song, imageUrl);
};
@@ -173,7 +173,8 @@ export const useRemote = () => {
type: 'itemCard',
useRemoteUrl: true,
}) || null;
remote.updateSong({ ...currentSong, imageUrl });
remote.updateSong(currentSong, imageUrl);
}
}, [isRemoteEnabled, player]);
@@ -204,7 +205,8 @@ export const useRemote = () => {
type: 'itemCard',
useRemoteUrl: true,
}) || null;
remote.updateSong({ ...song, imageUrl });
remote.updateSong(song, imageUrl);
} else {
remote.updateSong(undefined);
}