fix: seekTo not working as intended
This commit is contained in:
2 files changed
+9
-6
No files matched your search
@@ -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;
|
||||
});
|
||||
},
|
||||
})),
|
||||
|
||||
Reference in new issue
Block a user