Skip to content

🎥 Make videos programmatically with React

add new documentation

Jonny Burger83dbd1c6e6ca
diff --git a/packages/docs/docs/audio.mdx b/packages/docs/docs/audio.mdx
index 3a16ae235d..d60f95d441 100644
--- a/packages/docs/docs/audio.mdx
+++ b/packages/docs/docs/audio.mdx
@@ -156,6 +156,14 @@ If set to `true` and the audio is buffering, the Player will enter into the [nat
If set to `false`, no layer will be shown in the timeline of the Remotion Studio. The default is `true`.
+### `delayRenderTimeoutInMilliseconds`<AvailableFrom v="4.0.140" />
+
+Customize the [timeout](/docs/delay-render#modifying-the-timeout) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+
+### `delayRenderRetries`<AvailableFrom v="4.0.140" />
+
+Customize the [number of retries](/docs/delay-render#retrying) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+
## See also
- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/audio/Audio.tsx)
@@ -163,13 +171,19 @@ If set to `false`, no layer will be shown in the timeline of the Remotion Studio
- [Audio visualization](/docs/audio-visualization)
- [`<Video />`](/docs/video)
-<Credits contributors={[
-{
-username: "JonnyBurger",
-contribution: "Implementation"
-},
-{
-username: "evoxf1",
-contribution: <><code>toneFrequency</code> prop</>
-},
-]} />
+<Credits
+ contributors={[
+ {
+ username: "JonnyBurger",
+ contribution: "Implementation",
+ },
+ {
+ username: "evoxf1",
+ contribution: (
+ <>
+ <code>toneFrequency</code> prop
+ </>
+ ),
+ },
+ ]}
+/>
diff --git a/packages/docs/docs/delay-render.mdx b/packages/docs/docs/delay-render.mdx
index 06921fee86..a1e4e517fb 100644
--- a/packages/docs/docs/delay-render.mdx
+++ b/packages/docs/docs/delay-render.mdx
@@ -147,8 +147,8 @@ export const MyComp: React.FC = () => {
## Retrying<AvailableFrom v="4.0.140"/>
-If a is shaky (for example, if loading an asset from a CDN does is flaky), you can pass an object with a `timeoutInMilliseconds` value as a second argument.
-If a delayRender() call is not cleared within the timeout, the whole browser tab will be closed and the frame will be retried from scratch.
+If an operation is flaky (for example, if loading an asset from a CDN does sometimes give 5xx errors), you can pass an object with a `timeoutInMilliseconds` value as a second argument.
+If a `delayRender()` call is not cleared within the timeout, the whole browser tab will be closed and the frame will be retried from scratch.
```tsx twoslash title="Retrying a delayRender()"
import { delayRender } from "remotion";
@@ -158,7 +158,7 @@ delayRender("Loading asset...", {
});
```
-The [`<Img>`](/docs/img#delayrenderretries), [`<Audio>`](/docs/audio#delayrenderretries), [`<Video>`](/docs/video#delayrenderretries) and [`<IFrame>`](/docs/iframe#delayrenderretries) tags support a `delayRenderRetries` prop to control the value of the `delayRender()` value that those components make.
+The [`<Img>`](/docs/img#delayrenderretries), [`<Audio>`](/docs/audio#delayrenderretries), [`<Video>`](/docs/video#delayrenderretries) and [`<IFrame>`](/docs/iframe#delayrenderretries) tags support a `delayRenderRetries` prop to control the value of `retries` for the `delayRender()` call that those components make.
## Modifying the timeout<AvailableFrom v="4.0.140"/>
@@ -172,9 +172,7 @@ delayRender("Loading asset...", {
});
```
-// TODO: Rephrase
-
-The [`<Img>`](/docs/img#delayrendertimeoutinmilliseconds), [`<Audio>`](/docs/audio#delayrendertimeoutinmilliseconds), [`<Video>`](/docs/video#delayrendertimeoutinmilliseconds) and [`<IFrame>`](/docs/iframe#delayrendertimeoutinmilliseconds) tags support a `delayRenderTimeoutInMilliseconds` prop to control the value of the `delayRender()` value that those components make.
+The [`<Img>`](/docs/img#delayrendertimeoutinmilliseconds), [`<Audio>`](/docs/audio#delayrendertimeoutinmilliseconds), [`<Video>`](/docs/video#delayrendertimeoutinmilliseconds) and [`<IFrame>`](/docs/iframe#delayrendertimeoutinmilliseconds) tags support a `delayRenderTimeoutInMilliseconds` prop to control the value of `timeoutInMilliseconds` for the `delayRender()` call that those components make.
## Difference to `useBufferState().delayPlayback()`
diff --git a/packages/docs/docs/iframe.md b/packages/docs/docs/iframe.mdx
similarity index 63%
rename from packages/docs/docs/iframe.md
rename to packages/docs/docs/iframe.mdx
index 0f9f8971fb..bff6cb3184 100644
--- a/packages/docs/docs/iframe.md
+++ b/packages/docs/docs/iframe.mdx
@@ -22,6 +22,21 @@ export const MyComp: React.FC = () => {
};
```
+## Props
+
+### `src`
+
+The URL to load.
+
+### `delayRenderTimeoutInMilliseconds`<AvailableFrom v="4.0.140" />
+
+Customize the [timeout](/docs/delay-render#modifying-the-timeout) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+
+### `delayRenderRetries`<AvailableFrom v="4.0.140" />
+
+Customize the [number of retries](/docs/delay-render#retrying) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+Prefer the [`maxRetries`](#maxretries) prop over this.
+
## See also
- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/IFrame.tsx)
diff --git a/packages/docs/docs/img.md b/packages/docs/docs/img.mdx
similarity index 86%
rename from packages/docs/docs/img.md
rename to packages/docs/docs/img.mdx
index e6dcb0d662..a1772de52d 100644
--- a/packages/docs/docs/img.md
+++ b/packages/docs/docs/img.mdx
@@ -77,6 +77,15 @@ _optional_
If set to `true`, pause the Player when the image is loading. See: [Buffer state](/docs/player/buffer-state).
+### `delayRenderTimeoutInMilliseconds`<AvailableFrom v="4.0.140" />
+
+Customize the [timeout](/docs/delay-render#modifying-the-timeout) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+
+### `delayRenderRetries`<AvailableFrom v="4.0.140" />
+
+Customize the [number of retries](/docs/delay-render#retrying) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+Prefer the [`maxRetries`](#maxretries) prop over this.
+
## Other props
Remotion inherits the props of the regular `<img>` tag, like for example `style`.
diff --git a/packages/docs/docs/timeout.md b/packages/docs/docs/timeout.mdx
similarity index 100%
rename from packages/docs/docs/timeout.md
rename to packages/docs/docs/timeout.mdx
diff --git a/packages/docs/docs/video.mdx b/packages/docs/docs/video.mdx
index 49f81661c9..8a86b0fa08 100644
--- a/packages/docs/docs/video.mdx
+++ b/packages/docs/docs/video.mdx
@@ -220,6 +220,14 @@ If set to `true` and the video is loading, the Player will enter into the [nativ
If set to `false`, no layer will be shown in the timeline of the Remotion Studio. The default is `true`.
+### `delayRenderTimeoutInMilliseconds`<AvailableFrom v="4.0.140" />
+
+Customize the [timeout](/docs/delay-render#modifying-the-timeout) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+
+### `delayRenderRetries`<AvailableFrom v="4.0.140" />
+
+Customize the [number of retries](/docs/delay-render#retrying) of the [`delayRender()`](/docs/delay-render) call that this component makes.
+
## Speed up renders for video with silent audio
Remotion will download the whole video during render in order to mix its audio. If the video contains a silent audio track, you can add the muted property to signal to Remotion that it does not need to download the video and make the render more efficient.