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

Function probeAndCacheVolumeKeyframes

packages/core/src/runtime/init.ts:1606–1614  ·  view source on GitHub ↗
(mediaEl: HTMLMediaElement)

Source from the content-addressed store, hash-verified

1604 };
1605
1606 const probeAndCacheVolumeKeyframes = (mediaEl: HTMLMediaElement) => {
1607 if (volumeKeyframeCache.has(mediaEl)) return;
1608 probeAndCacheElementVolume(
1609 mediaEl,
1610 state.capturedTimeline,
1611 getSafeTimelineDurationSeconds(state.capturedTimeline, 0),
1612 volumeKeyframeCache,
1613 );
1614 };
1615
1616 // fallow-ignore-next-line complexity
1617 // Whether a timed clip participates in normal flow (static/relative/sticky).

Callers 2

Calls 2

Tested by

no test coverage detected