mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 21:29:34 +00:00
fix(producer): pass entryFile to renderStream handler + add debug logging
The renderStream handler was missing entryFile in createRenderJob, causing all composition renders to fall back to index.html. Also adds logging for staticDuration and entryFile to help diagnose duration detection issues. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
55beb9a56d
commit
e2061694f2
@@ -436,6 +436,7 @@ export function createRenderHandlers(options: HandlerOptions = {}): RenderHandle
|
||||
workers: input.workers,
|
||||
useGpu: input.useGpu,
|
||||
debug: input.debug,
|
||||
entryFile: input.entryFile,
|
||||
logger: log,
|
||||
});
|
||||
const abortController = new AbortController();
|
||||
|
||||
@@ -398,6 +398,15 @@ export async function executeRenderJob(
|
||||
perfStages.compileOnlyMs = Date.now() - compileStart;
|
||||
writeCompiledArtifacts(compiled, workDir, Boolean(job.config.debug));
|
||||
|
||||
log.info("Compiled composition metadata", {
|
||||
entryFile,
|
||||
staticDuration: compiled.staticDuration,
|
||||
width: compiled.width,
|
||||
height: compiled.height,
|
||||
videoCount: compiled.videos.length,
|
||||
audioCount: compiled.audios.length,
|
||||
});
|
||||
|
||||
const composition: CompositionMetadata = {
|
||||
duration: compiled.staticDuration,
|
||||
videos: compiled.videos,
|
||||
@@ -445,7 +454,10 @@ export async function executeRenderJob(
|
||||
if (composition.duration <= 0) {
|
||||
const discoveredDuration = await getCompositionDuration(probeSession);
|
||||
assertNotAborted();
|
||||
log.info("Probed composition duration from browser", { discoveredDuration, staticDuration: compiled.staticDuration });
|
||||
composition.duration = discoveredDuration;
|
||||
} else {
|
||||
log.info("Using static duration from data-duration attribute", { duration: composition.duration });
|
||||
}
|
||||
|
||||
// Resolve unresolved composition durations via window.__timelines
|
||||
|
||||
Reference in New Issue
Block a user