mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 23:43:35 +00:00
Format reconciled playback and renderer changes
This commit is contained in:
1 parent
b7ea069d02
commit
596d81b7b2
3 files changed
+9
-6
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user