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

Function activateSiblingTimelines

packages/core/src/runtime/init.ts:2363–2373  ·  view source on GitHub ↗
(masterTimeline: RuntimeTimelineLike)

Source from the content-addressed store, hash-verified

2361 // so the residual unpaused state is harmless — the next call re-activates
2362 // idempotently.
2363 const activateSiblingTimelines = (masterTimeline: RuntimeTimelineLike) => {
2364 const timelines = (window.__timelines ?? {}) as Record<string, RuntimeTimelineLike | undefined>;
2365 for (const tl of Object.values(timelines)) {
2366 if (!tl || tl === masterTimeline) continue;
2367 try {
2368 tl.play();
2369 } catch (err) {
2370 swallow("runtime.init.activateSiblings", err);
2371 }
2372 }
2373 };
2374
2375 const seekTimelineAndAdapters = (t: number, opts?: { activateChildren?: boolean }) => {
2376 const tl = state.capturedTimeline;

Callers 1

seekTimelineAndAdaptersFunction · 0.70

Calls 2

swallowFunction · 0.90
playMethod · 0.65

Tested by

no test coverage detected