mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
resend mediasession on player repeat (#1472)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user