From 72c3081182dfec568660a5dbb942951e64cb308b Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Fri, 20 Nov 2026 17:18:14 -0800 Subject: [PATCH 1/2] chore(quest): claim quest/m0/test-flakes-3/publish-stuck-clock-delta.md Quest-Claim: acfb3e6d10402c2f From 4f8a52bc22807052bed46b94ed71d8105a3bb56b Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Fri, 20 Nov 2026 17:24:32 -0800 Subject: [PATCH 2/2] fix(js/publish): stamp captured video frames in whole microseconds Co-Authored-By: Claude Sonnet 5.5 --- js/publish/src/video/processor.test.ts | 1 + js/publish/src/video/processor.ts | 11 +++++++++-- quest/m0/test-flakes-3/publish-stuck-clock-delta.md | 13 ------------- 3 files changed, 10 insertions(+), 15 deletions(-) delete mode 100644 quest/m0/test-flakes-3/publish-stuck-clock-delta.md diff --git a/js/publish/src/video/processor.test.ts b/js/publish/src/video/processor.test.ts index db285be489..c6115aea37 100644 --- a/js/publish/src/video/processor.test.ts +++ b/js/publish/src/video/processor.test.ts @@ -180,6 +180,7 @@ test("falls back to arrival time when the source clock is stuck", async () => { // Without the fallback all three would land on the same instant, and the encoder would see a // stream of frames that never advances. Arrivals are 10ms apart, so the deltas are exact. + expect(Number.isInteger(first.value?.timestamp)).toBe(true); expect((second.value?.timestamp ?? 0) - (first.value?.timestamp ?? 0)).toBe(10_000); expect((third.value?.timestamp ?? 0) - (second.value?.timestamp ?? 0)).toBe(10_000); diff --git a/js/publish/src/video/processor.ts b/js/publish/src/video/processor.ts index fce5248586..50aad64267 100644 --- a/js/publish/src/video/processor.ts +++ b/js/publish/src/video/processor.ts @@ -73,7 +73,12 @@ class Epoch { // A stuck source leaves arrival time as the only clock we have, which is what the