mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
fix seeking between 0-1 seconds
This commit is contained in:
parent
f7dd634f67
commit
6b7c69e90a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user