🎥 Make videos programmatically with React
`@remotion/media`: Fix video stretching after changing the size of a `<Video>`
Jonny Burger4541a67dc342
diff --git a/packages/media/src/video/video-for-preview.tsx b/packages/media/src/video/video-for-preview.tsxindex 01bcc55b8c..76ef28303f 100644--- a/packages/media/src/video/video-for-preview.tsx+++ b/packages/media/src/video/video-for-preview.tsx@@ -569,8 +569,9 @@ const VideoForPreviewAssertedShowing: React.FC<return (<canvasref={canvasRef}- width={videoConfig.width}- height={videoConfig.height}+ // Don't set width and height here.+ // Width is set in the video iterator manager, if props are being upated, they are being applied again by React.+ // This will lead to inefficient resizes.style={actualStyle}className={classNameValue}/>