mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
Merge pull request #694 from heygen-com/fix/composition-loading-stuck
fix(runtime): composition loading stuck indefinitely on multi-slide decks
This commit is contained in:
@@ -932,6 +932,15 @@ export function initSandboxRuntimeModular(): void {
|
||||
if (typeof state.capturedTimeline.timeScale === "function") {
|
||||
state.capturedTimeline.timeScale(state.playbackRate);
|
||||
}
|
||||
const boundDuration = getSafeTimelineDurationSeconds(state.capturedTimeline, 0);
|
||||
if (boundDuration > 0) {
|
||||
try {
|
||||
clock.setDuration(boundDuration);
|
||||
} catch {
|
||||
// clock not yet initialized — duration will be set during TransportClock setup
|
||||
}
|
||||
state.capturedTimeline.pause();
|
||||
}
|
||||
if (resolution.diagnostics) {
|
||||
postRuntimeMessage({
|
||||
source: "hf-preview",
|
||||
|
||||
Reference in New Issue
Block a user