fix seeking between 0-1 seconds

This commit is contained in:
Kendall Garner 2024-09-02 10:56:46 -07:00
parent f7dd634f67
commit 6b7c69e90a
No known key found for this signature in database
GPG Key ID: 18D2767419676C87

View File

@ -474,7 +474,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
mpvPlayer!.seek(-seconds);
} else {
resetNextPlayer();
currentPlayerRef.seekTo(newTime);
currentPlayerRef.seekTo(newTime, 'seconds');
}
};
@ -497,7 +497,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
resetNextPlayer();
setCurrentTime(newTime, true);
currentPlayerRef.seekTo(newTime);
currentPlayerRef.seekTo(newTime, 'seconds');
}
};
@ -505,7 +505,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
if (isMpvPlayer) {
mpvPlayer!.seekTo(e);
} else {
currentPlayerRef.seekTo(e);
currentPlayerRef.seekTo(e, 'seconds');
}
}, 100);