packages/docs/docs/iframe.mdx
The <IFrame /> can be used like the regular <iframe> HTML tag.
Remotion automatically wraps the <iframe> in a delayRender() call
and ensures that the iframe is loaded before rendering the frame.
Ideally, the website should not have any animations, since only animations using useCurrentFrame() are supported by Remotion. See Flickering for an explanation.
import {IFrame} from 'remotion';
export const MyComp: React.FC = () => {
return <IFrame src="https://remotion.dev" />;
};
srcThe URL to load.
delayRenderTimeoutInMilliseconds<AvailableFrom v="4.0.140" />Customize the timeout of the delayRender() call that this component makes.
delayRenderRetries<AvailableFrom v="4.0.140" />Customize the number of retries of the delayRender() call that this component makes.
Prefer the maxRetries prop over this.