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

Function logFallbackHandoff

packages/core/src/runtime/webAudioTransport.ts:14–21  ·  view source on GitHub ↗

* Breadcrumb for the per-element-mute handoff: the transport just claimed a track * that was audibly playing through the HTMLMedia fallback. Quiet unless * `__hfDebug` — a hook for diagnosing the race if it ever regresses.

(el: HTMLMediaElement, priorMuted: boolean)

Source from the content-addressed store, hash-verified

12 * `__hfDebug` — a hook for diagnosing the race if it ever regresses.
13 */
14function logFallbackHandoff(el: HTMLMediaElement, priorMuted: boolean): void {
15 if (priorMuted || el.paused || !getDebugSurface().__hfDebug) return;
16 // eslint-disable-next-line no-console -- intentional debug surface
17 console.debug(
18 "[hyperframes] webAudioTransport claimed fallback-playing element:",
19 el.currentSrc || el.getAttribute("src") || "",
20 );
21}
22
23/**
24 * Start a buffer source, bounding it to the clip's authored window

Callers 1

schedulePlaybackMethod · 0.85

Calls 3

getDebugSurfaceFunction · 0.85
debugMethod · 0.80
getAttributeMethod · 0.65

Tested by

no test coverage detected