(method: "discover" | "pause" | "play", timeSeconds = 0)
| 1852 | }; |
| 1853 | |
| 1854 | const runAdapters = (method: "discover" | "pause" | "play", timeSeconds = 0) => { |
| 1855 | for (const adapter of state.deterministicAdapters) { |
| 1856 | try { |
| 1857 | if (method === "discover") adapter.discover(); |
| 1858 | if (method === "pause") adapter.pause(); |
| 1859 | if (method === "play" && adapter.play) adapter.play(); |
| 1860 | } catch (err) { |
| 1861 | // keep runtime resilient against adapter-specific failures |
| 1862 | swallow("runtime.init.site8", err); |
| 1863 | } |
| 1864 | if (method === "discover") { |
| 1865 | try { |
| 1866 | adapter.seek({ time: timeSeconds }); |
| 1867 | } catch (err) { |
| 1868 | // ignore seek bootstrap failures |
| 1869 | swallow("runtime.init.site9", err); |
| 1870 | } |
| 1871 | } |
| 1872 | } |
| 1873 | }; |
| 1874 | |
| 1875 | let maybePublishRenderReady = () => { |
| 1876 | window.__renderReady = false; |
no test coverage detected