🎥 Make videos programmatically with React
add node JS API docs
Jonny Burgerf5c4605fd15e
diff --git a/packages/docs/docs/get-compositions.md b/packages/docs/docs/get-compositions.mdindex 0a0b0b3462..dcaab9fb5c 100644--- a/packages/docs/docs/get-compositions.md+++ b/packages/docs/docs/get-compositions.md@@ -47,6 +47,12 @@ _optional, available from v2.3.1_A string defining the absolute path on disk of the browser executable that should be used. By default Remotion will try to detect it automatically and download one if none is available. If `browserInstance` is defined, it will take precedence over `browserExecutable`.+#### `timeoutInMilliseconds?`++_optional, available from v2.6.2_++A number describing how long one frame may take to resolve all `delayRender()` calls before the render times out and fails. Default: `30000`+## Return valueReturns a promise that resolves to an array of available compositions. Example value:diff --git a/packages/docs/docs/render-frames.md b/packages/docs/docs/render-frames.mdindex 1455b7d818..442b0b11f9 100644--- a/packages/docs/docs/render-frames.md+++ b/packages/docs/docs/render-frames.md@@ -133,24 +133,21 @@ Allows you to react to an exception thrown in your React code. The callback hasThe `frame` property tells you at which frame the error was thrown. If the error was thrown at startup, `frame` is null.```tsx twoslash-import {renderFrames as rf} from '@remotion/renderer'+import { renderFrames as rf } from "@remotion/renderer";const renderFrames = (options: {- onError: (info: {- frame: null | number;- error: Error- }) => void;-}) => {}+ onError: (info: { frame: null | number; error: Error }) => void;+}) => {};// ---cut---renderFrames({onError: (info) => {if (info.frame === null) {- console.error('Got error while initalizing video rendering', info.error)+ console.error("Got error while initalizing video rendering", info.error);} else {- console.error('Got error at frame ', info.frame, info.error)+ console.error("Got error at frame ", info.frame, info.error);}// Handle error here- }-})+ },+});```### `browserExecutable?`@@ -159,6 +156,12 @@ _optional, available from v2.3.1_A string defining the absolute path on disk of the browser executable that should be used. By default Remotion will try to detect it automatically and download one if none is available. If `puppeteerInstance` is defined, it will take precedence over `browserExecutable`.+### `timeoutInMilliseconds?`++_optional, available from v2.6.2_++A number describing how long one frame may take to resolve all `delayRender()` calls before the render times out and fails. Default: `30000`+## Return valueA promise resolving to an object containing the following properties:diff --git a/packages/docs/docs/render-still.md b/packages/docs/docs/render-still.mdindex 949eb216ab..cb9f7ab240 100644--- a/packages/docs/docs/render-still.md+++ b/packages/docs/docs/render-still.md@@ -118,16 +118,14 @@ _optional_Allows you to react to an exception thrown in your React code. The callback has an argument which is the error.```tsx twoslash-const renderStill = (options: {- onError: (err: Error) => void;-}) => {}+const renderStill = (options: { onError: (err: Error) => void }) => {};// ---cut---renderStill({// ... other argumentsonError: (err: Error) => {// Handle error here- }-})+ },+});```### `overwrite?`@@ -142,6 +140,12 @@ _optional, available from v2.3.1_A string defining the absolute path on disk of the browser executable that should be used. By default Remotion will try to detect it automatically and download one if none is available. If `puppeteerInstance` is defined, it will take precedence over `browserExecutable`.+### `timeoutInMilliseconds?`++_optional, available from v2.6.2_++A number describing how long the render may take to resolve all `delayRender()` calls before it times out. Default: `30000`+## Return valueA promise with no value. If the render succeeded, the still has been saved to `output`. If the render failed, the promise rejects.