WIP bug fixing

This commit is contained in:
Alex Kim
2024-10-27 22:29:58 +11:00
parent 0f1ee174a0
commit 30280db810
3 changed files with 29 additions and 12 deletions

View File

@@ -226,7 +226,9 @@ export const Controls: React.FC<Props> = ({
isSeeking.value = false;
progress.value = value;
await seek(Math.max(0, Math.floor(isVlc ? value : value / 10000000)));
await seek(
Math.max(0, Math.floor(isVlc ? value : ticksToSeconds(value)))
);
if (wasPlayingRef.current === true) play();
},
[isVlc]