(session, t)
| 122 | // ─── Seek helper ──────────────────────────────────────────────────────────── |
| 123 | |
| 124 | async function seekTo(session, t) { |
| 125 | await session.page.evaluate((time) => { |
| 126 | if (window.__hf && typeof window.__hf.seek === "function") { |
| 127 | window.__hf.seek(time); |
| 128 | return; |
| 129 | } |
| 130 | const tls = window.__timelines; |
| 131 | if (tls) { |
| 132 | for (const tl of Object.values(tls)) { |
| 133 | if (typeof tl.seek === "function") tl.seek(time); |
| 134 | } |
| 135 | } |
| 136 | }, t); |
| 137 | await new Promise((r) => setTimeout(r, 100)); |
| 138 | } |
| 139 | |
| 140 | // ─── Timeline introspection ────────────────────────────────────────────────── |
| 141 |
no test coverage detected