MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / runAdapters

Function runAdapters

packages/core/src/runtime/init.ts:1854–1873  ·  view source on GitHub ↗
(method: "discover" | "pause" | "play", timeSeconds = 0)

Source from the content-addressed store, hash-verified

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;

Callers 3

transportTickFunction · 0.85

Calls 4

swallowFunction · 0.90
pauseMethod · 0.65
playMethod · 0.65
seekMethod · 0.65

Tested by

no test coverage detected