🎥 Make videos programmatically with React
seeked to
Jonny Burger43fbdaae2576
diff --git a/packages/core/src/video/seek-until-right.ts b/packages/core/src/video/seek-until-right.tsindex a4a11c6947..55d0d2bc50 100644--- a/packages/core/src/video/seek-until-right.ts+++ b/packages/core/src/video/seek-until-right.ts@@ -5,6 +5,8 @@ export const seekToTime = (element: HTMLVideoElement, desiredTime: number) => {let cancelSeeked: null | (() => void) = null;const prom = new Promise<number>((resolve) => {cancel = element.requestVideoFrameCallback((_cb, metadata) => {+ // eslint-disable-next-line no-console+ console.log('seeked to', JSON.stringify(metadata));resolve(metadata.mediaTime);});});diff --git a/packages/it-tests/src/rendering/frame-accuracy.test.ts b/packages/it-tests/src/rendering/frame-accuracy.test.tsindex 0c64b9e4ea..aae843b402 100644--- a/packages/it-tests/src/rendering/frame-accuracy.test.ts+++ b/packages/it-tests/src/rendering/frame-accuracy.test.ts@@ -32,6 +32,7 @@ const getMissedFramesforCodec = async ("--image-format","png","--sequence",+ "--log=verbose",],{cwd: path.join(process.cwd(), "..", "example"),@@ -84,7 +85,7 @@ const getMissedFramesforCodec = async (return missedFrames;};-test("should render correct frames from embedded videos - WebM onthread", async () => {+test.only("should render correct frames from embedded videos - WebM onthread", async () => {const missedFrames = await getMissedFramesforCodec("webm", false);expect(missedFrames).toBeLessThanOrEqual(0);});