🎥 Make videos programmatically with React
rename setTimeoutInMilliseconds to setDelayRenderTimeoutInMilliseconds
Jonny Burgeree5b8e5abba4
diff --git a/packages/cli/src/config/index.ts b/packages/cli/src/config/index.tsindex 84875483d2..44b0b9f727 100644--- a/packages/cli/src/config/index.ts+++ b/packages/cli/src/config/index.ts@@ -122,6 +122,7 @@ const Log = {const Puppeteer = {setBrowserExecutable,setTimeoutInMilliseconds: setPuppeteerTimeout,+ setDelayRenderTimeoutInMilliseconds: setPuppeteerTimeout,setChromiumDisableWebSecurity,setChromiumIgnoreCertificateErrors,setChromiumHeadlessMode,diff --git a/packages/cli/src/config/timeout.ts b/packages/cli/src/config/timeout.tsindex efe016f649..b2727d33e5 100644--- a/packages/cli/src/config/timeout.ts+++ b/packages/cli/src/config/timeout.ts@@ -5,7 +5,7 @@ let currentTimeout: number = RenderInternals.DEFAULT_TIMEOUT;export const setPuppeteerTimeout = (newPuppeteerTimeout: number) => {if (typeof newPuppeteerTimeout !== 'number') {throw new Error(- '--timeout flag / setTimeoutInMilliseconds() must be a number, but got ' ++ '--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got ' +JSON.stringify(newPuppeteerTimeout));}diff --git a/packages/core/src/config.ts b/packages/core/src/config.tsindex 34efe436b7..4b6add0b3e 100644--- a/packages/core/src/config.ts+++ b/packages/core/src/config.ts@@ -135,6 +135,14 @@ type ObjectConfig = {* Set how many milliseconds a frame may take to render before it times out.* Default: `30000`*/+ readonly setDelayRenderTimeoutInMilliseconds: (+ newPuppeteerTimeout: number+ ) => void;+ /**+ * @deprecated Renamed to `setDelayRenderTimeoutInMilliseconds`.+ * Set how many milliseconds a frame may take to render before it times out.+ * Default: `30000`+ */readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;/*** Setting deciding whether to disable CORS and other Chrome security features.diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex b8efa09eb7..72153d92e8 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -151,7 +151,7 @@ The [command line flag](/docs/cli/render#--log) `--log` will take precedence ove_Available from Version 2.1.10._-Set how many tracks are being displayed in the timeline at most. This does not affect your video, just the amount of tracks shown when previewing. Default `15`.+Set how many tracks are being displayed in the timeline in the Preview at most. This does not affect your video, just the amount of tracks shown when previewing. Default `15`.```ts twoslash title="remotion.config.ts"import { Config } from "remotion";@@ -192,7 +192,7 @@ The [command line flag](/docs/cli/preview#--webpack-poll) `--webpack-poll` will_available from v3.3.2_-How many shared audio tags should be mounted in reht preview. Shared audio tags can help prevent playback issues due to audio autoplay policies of the browser. Default 0+How many shared audio tags should be mounted in the Preview. Shared audio tags can help prevent playback issues due to audio autoplay policies of the browser. See [this article](/docs/player/autoplay#use-the-numberofsharedaudiotags-property) which covers the same option but for the Player. Default `0`, meaning no autoplay policies are circumvented.```ts twoslash title="remotion.config.ts"import { Config } from "remotion";@@ -228,16 +228,18 @@ Config.setBrowserExecutable("/usr/bin/google-chrome-stable");The [command line flag](/docs/cli/render#--browser-executable) `--browser-executable` will take precedence over this option.-## setTimeoutInMilliseconds()+## setDelayRenderTimeoutInMilliseconds()_Available from Version 2.6.3._+_previously named "setTimeoutInMilliseconds"_+Define how long a single frame may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000````ts twoslash title="remotion.config.ts"import { Config } from "remotion";// ---cut----Config.setTimeoutInMilliseconds(60000);+Config.setDelayRenderTimeoutInMilliseconds(60000);```The [command line flag](/docs/cli/render#--timeout) `--timeout` will take precedence over this option.diff --git a/packages/docs/docs/timeout.md b/packages/docs/docs/timeout.mdindex f90d5a84ec..51af5ece58 100644--- a/packages/docs/docs/timeout.md+++ b/packages/docs/docs/timeout.md@@ -68,7 +68,7 @@ You can increase the default timeout from v2.6.3 on:- Using the [`--timeout`](/docs/cli/render#--timeout) CLI flag- Using the `timeoutInMilliseconds` option in [`renderStill()`](/docs/renderer/render-still#timeoutinmilliseconds), [`renderFrames()`](/docs/renderer/render-frames#timeoutinmilliseconds), [`getCompositions()`](/docs/renderer/get-compositions#timeoutinmilliseconds), [`renderMedia()`](/docs/renderer/render-media#timeoutinmilliseconds), [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda#timeoutinmilliseconds) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda#timeoutinmilliseconds)-- Using the [`Config.setTimeoutInMilliseconds()`](/docs/config#settimeoutinmilliseconds) option in the config file+- Using the [`Config.setDelayRenderTimeoutInMilliseconds()`](/docs/config#setdelayrendertimeoutinmilliseconds) option in the config file## Adding a label to help debugging