Skip to content

🎥 Make videos programmatically with React

Merge remote-tracking branch 'origin/main' into codex/html-in-canvas-motion-blur

JonnyBurgere0611dc92716
diff --cc packages/core/src/HtmlInCanvas.tsx
index 72c9e63e96,6df06e2880..6b1546735c
--- a/packages/core/src/HtmlInCanvas.tsx
+++ b/packages/core/src/HtmlInCanvas.tsx
@@@ -780,31 -793,36 +799,37 @@@ const HtmlInCanvasInner = forwardRef
});
return (
- <Sequence
- durationInFrames={durationInFrames}
- name={name ?? '<HtmlInCanvas>'}
- _remotionInternalDocumentationLink="https://www.remotion.dev/docs/remotion/html-in-canvas"
- controls={controls}
- _remotionInternalEffects={memoizedEffectDefinitions}
- outlineRef={actualRef}
- layout="none"
- {...sequenceProps}
- >
- <HtmlInCanvasContent
- ref={setCanvasRef}
- width={width}
- height={height}
- effects={effects}
- onPaint={onPaint}
- onInit={onInit}
- pixelDensity={pixelDensity}
- canvasSiblings={_remotionInternalCanvasSiblings ?? null}
+ <Freeze frame={freezeFrame} active={isPremountingOrPostmounting}>
+ <Sequence
+ layout="none"
+ durationInFrames={durationInFrames}
+ name={name ?? '<HtmlInCanvas>'}
+ _remotionInternalDocumentationLink="https://www.remotion.dev/docs/remotion/html-in-canvas"
controls={controls}
- style={croppedStyle ?? undefined}
+ _remotionInternalEffects={memoizedEffectDefinitions}
+ outlineRef={actualRef}
+ {...sequenceProps}
+ _remotionInternalPremountDisplay={effectivePremountFor || null}
+ _remotionInternalPostmountDisplay={effectivePostmountFor || null}
+ _remotionInternalIsPremounting={premountingActive}
+ _remotionInternalIsPostmounting={postmountingActive}
>
- {children}
- </HtmlInCanvasContent>
- </Sequence>
+ <HtmlInCanvasContent
+ ref={setCanvasRef}
+ width={width}
+ height={height}
+ effects={effects}
+ onPaint={onPaint}
+ onInit={onInit}
+ pixelDensity={pixelDensity}
++ canvasSiblings={_remotionInternalCanvasSiblings ?? null}
+ controls={controls}
+ style={croppedStyle ?? undefined}
+ >
+ {children}
+ </HtmlInCanvasContent>
+ </Sequence>
+ </Freeze>
);
},
);