mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 13:00:25 +02:00
Set pause status on last track end (#291)
This commit is contained in:
@@ -261,6 +261,13 @@ export const usePlayerStore = create<PlayerSlice>()(
|
||||
});
|
||||
}
|
||||
|
||||
if (isLastTrack && repeat === PlayerRepeat.NONE) {
|
||||
set((state) => {
|
||||
state.current.time = 0;
|
||||
state.current.status = PlayerStatus.PAUSED;
|
||||
});
|
||||
}
|
||||
|
||||
return get().actions.getPlayerData();
|
||||
},
|
||||
checkIsFirstTrack: () => {
|
||||
|
||||
Reference in New Issue
Block a user