MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / seekTo

Function seekTo

e2e/viewer/src/SessionPlayer.tsx:225–230  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

223 }, [playing, ready, acts]);
224
225 const seekTo = async (time: number) => {
226 const clamped = Math.min(Math.max(0, time), duration);
227 tRef.current = clamped;
228 setT(clamped);
229 await apply(clamped, playing);
230 };
231
232 const toggle = async () => {
233 const next = !playing;

Callers 1

SessionPlayerFunction · 0.85

Calls 1

applyFunction · 0.70

Tested by

no test coverage detected