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

Function mediaTime

e2e/viewer/src/SessionPlayer.tsx:123–128  ·  view source on GitHub ↗
(window: Act["window"], time: number)

Source from the content-addressed store, hash-verified

121
122 /** A recording's own clock for session-time `time`. */
123 const mediaTime = (window: Act["window"], time: number): number =>
124 Math.max(
125 0,
126 (sessionStart + time * 1000 - (window === "terminal" ? terminalAnchor : browserAnchor)) /
127 1000,
128 );
129
130 // Mount the cast player once (no idle compression — sync needs real time).
131 useEffect(() => {

Callers 1

applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected