resend mediasession on player repeat (#1472)

This commit is contained in:
jeffvli
2026-01-01 20:17:49 -08:00
parent af8470e254
commit aaf840d358
4 changed files with 58 additions and 16 deletions
+6
View File
@@ -1367,6 +1367,12 @@ export const usePlayerStoreBase = createWithEqualityFn<PlayerState>()(
state.player.status = newStatus;
});
if (repeat === PlayerRepeat.ONE && nextIndex === currentIndex) {
eventEmitter.emit('PLAYER_REPEATED', {
index: nextIndex,
});
}
const nextSong = calculateNextSong(nextIndex, queue.items, repeat);
return {