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