Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

Format reconciled playback and renderer changes

webadderall596d81b7b2fe
diff --git a/src/components/video-editor/videoPlayback/clipPlayback.ts b/src/components/video-editor/videoPlayback/clipPlayback.ts
index 48d54a33..7713c137 100644
--- a/src/components/video-editor/videoPlayback/clipPlayback.ts
+++ b/src/components/video-editor/videoPlayback/clipPlayback.ts
@@ -121,7 +121,8 @@ export function createClipPlayback({
video.currentTime = target;
}
}
- if (playing && (startSource || seek || clip !== activeClip) && !video.seeking) playSource();
+ if (playing && (startSource || seek || clip !== activeClip) && !video.seeking)
+ playSource();
} else {
playRequest++;
video.pause();
diff --git a/src/lib/exporter/modernFrameRenderer.ts b/src/lib/exporter/modernFrameRenderer.ts
index 3d0c50b5..805af27c 100644
--- a/src/lib/exporter/modernFrameRenderer.ts
+++ b/src/lib/exporter/modernFrameRenderer.ts
@@ -628,9 +628,7 @@ export class FrameRenderer {
// "Cannot read properties of undefined (reading '_resourceType')", which is only
// recoverable by restarting the whole export on a different backend.
const backendOrder: ExportRenderBackend[] =
- preferredRenderBackend === "webgpu"
- ? ["webgpu", "webgl"]
- : ["webgl", "webgpu"];
+ preferredRenderBackend === "webgpu" ? ["webgpu", "webgl"] : ["webgl", "webgpu"];
const failures: PixiRendererAttempt[] = [];
for (const backend of backendOrder) {
diff --git a/tests/ui/clip-cut-delete.spec.ts b/tests/ui/clip-cut-delete.spec.ts
index 751a0d47..4eabd8b7 100644
--- a/tests/ui/clip-cut-delete.spec.ts
+++ b/tests/ui/clip-cut-delete.spec.ts
@@ -1,7 +1,9 @@
import { expect, test } from "@playwright/test";
import { installDesktopBridge } from "./bridge";
-test.use({ channel: process.env.RECORDLY_TEST_BROWSER_CHANNEL === "chrome" ? "chrome" : undefined });
+test.use({
+ channel: process.env.RECORDLY_TEST_BROWSER_CHANNEL === "chrome" ? "chrome" : undefined,
+});
test("two cuts select the middle clip for deletion", async ({ page }) => {
test.setTimeout(45_000);
@@ -10,7 +12,9 @@ test("two cuts select the middle clip for deletion", async ({ page }) => {
const clips = page.locator('[data-variant="clip"]');
await expect(clips).toHaveCount(1, { timeout: 20_000 });
const firstClip = await clips.first().boundingBox();
- const timeline = page.locator(".select-none.bg-editor-bg.relative.cursor-pointer.group.flex.flex-col").last();
+ const timeline = page
+ .locator(".select-none.bg-editor-bg.relative.cursor-pointer.group.flex.flex-col")
+ .last();
const canvas = await timeline.boundingBox();
if (!firstClip || !canvas) throw new Error("Timeline is not visible");