mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
fix(runtime): honor render fps when seeking (#1739)
This commit is contained in:
@@ -238,7 +238,11 @@ async function generateThumbnail(item: CatalogItem, projectDir: string): Promise
|
||||
const framesDir = join(projectDir, "_thumb_frames");
|
||||
mkdirSync(framesDir, { recursive: true });
|
||||
|
||||
const fileServer = await createFileServer({ projectDir, port: 0 });
|
||||
const fileServer = await createFileServer({
|
||||
projectDir,
|
||||
port: 0,
|
||||
fps: { num: 30, den: 1 },
|
||||
});
|
||||
try {
|
||||
const session = await createCaptureSession(fileServer.url, framesDir, {
|
||||
width,
|
||||
|
||||
@@ -141,7 +141,11 @@ async function generateThumbnail(templateId: string, projectDir: string): Promis
|
||||
const framesDir = join(projectDir, "_thumb_frames");
|
||||
mkdirSync(framesDir, { recursive: true });
|
||||
|
||||
const fileServer = await createFileServer({ projectDir, port: 0 });
|
||||
const fileServer = await createFileServer({
|
||||
projectDir,
|
||||
port: 0,
|
||||
fps: { num: 30, den: 1 },
|
||||
});
|
||||
try {
|
||||
const session = await createCaptureSession(fileServer.url, framesDir, {
|
||||
width: config.width,
|
||||
|
||||
Reference in New Issue
Block a user