()
| 230 | }; |
| 231 | |
| 232 | const toggle = async () => { |
| 233 | const next = !playing; |
| 234 | setPlaying(next); |
| 235 | if (next && tRef.current >= duration - 0.1) { |
| 236 | tRef.current = 0; |
| 237 | setT(0); |
| 238 | } |
| 239 | await apply(tRef.current, next); |
| 240 | }; |
| 241 | |
| 242 | // Live URL: the last main-frame navigation at-or-before "now" (wall). |
| 243 | const wallNow = sessionStart + t * 1000; |