fix: seekTo not working as intended

This commit is contained in:
Prayag Prajapati committed 2025-07-01 22:04:55 +05:30
1 parent c4073f1368
commit 53311a1728
2 files changed
+9 -6

No files matched your search

+5 -3
View File
@@ -498,10 +498,12 @@ export const usePlaybackStore = create<
return 0;
},
},
registerPlayerActions: (actions) =>
registerPlayerActions: (actions) => {
console.info("Registering player actions:", actions);
set({
_playerActions: actions,
}),
});
},
seekTo: (seconds: number) => {
const playerActions = get()._playerActions;
playerActions.seekTo(seconds);
@@ -576,7 +578,7 @@ export const usePlaybackStore = create<
// Update current time to the new seek value
set((state) => {
state.playerState.isUserSeeking = false;
// state.playerState.currentTime = ticks;
state.playerState.currentTime = ticks;
});
},
})),