Function
mediaTime
(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(() => { |
Tested by
no test coverage detected