(null)
const [err, setErr] = useState('')
@@ -234,7 +242,9 @@ export default function Player({ path, sudo }: { path: string; sudo: boolean; na
const seekBy = useCallback((d: number) => {
const v = video.current
if (!v) return
- v.currentTime = Math.max(0, Math.min(info?.duration ?? v.duration, v.currentTime + d))
+ const to = Math.max(0, Math.min(info?.duration ?? v.duration, v.currentTime + d))
+ v.currentTime = to
+ setTime(to) // the ball goes there at once, made yet or not
poke()
}, [info, poke])
// Full screen: the browser's where it has one for an element, else (an iPhone) the window.
@@ -336,6 +346,8 @@ export default function Player({ path, sudo }: { path: string; sudo: boolean; na
+
+
{clock(shown)} / {clock(dur)}
{vr && canMotion() && (