Skip to content

Commit d2d6583

Browse files
krishs0404claude
andcommitted
docs(core): note the hidden-tab timer clamp for silent media
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 4dab867 commit d2d6583

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/core/src/runtime/init.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4786,7 +4786,9 @@ export function initSandboxRuntimeModular(): void {
47864786

47874787
// A hidden document runs no animation frames, but its media keeps playing, so the
47884788
// transport that ends a clip's window and starts the next one has to tick on a
4789-
// timer while hidden. Chromium does not throttle the timers of a page playing audio.
4789+
// timer while hidden. Chromium does not throttle the timers of a page playing audio;
4790+
// a page playing only muted or silent media is clamped to about one timer a second,
4791+
// so a clip there can end up to a second late.
47904792
let transportTickTimerId: number | null = null;
47914793
const transportTickPending = () => state.transportRafId != null || transportTickTimerId != null;
47924794
const requestTransportTick = () => {

0 commit comments

Comments
 (0)