* 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)
| 12 | * `__hfDebug` — a hook for diagnosing the race if it ever regresses. |
| 13 | */ |
| 14 | function 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 |
no test coverage detected