🎥 Make videos programmatically with React
fix docs for `composition` parameter
Jonny Burgerb4bdd186afb9
diff --git a/packages/docs/docs/renderer/make-cancel-signal.md b/packages/docs/docs/renderer/make-cancel-signal.mdindex 24c33abf75..f805774a89 100644--- a/packages/docs/docs/renderer/make-cancel-signal.md+++ b/packages/docs/docs/renderer/make-cancel-signal.md@@ -15,8 +15,8 @@ This function returns a signal and a cancel function that allows to you cancel a```tsx twoslash// @module: ESNext// @target: ESNext-import { TCompMetadata } from "remotion";-const composition = {+import { VideoConfig } from "remotion";+const composition: VideoConfig = {durationInFrames: 1000000,fps: 30,height: 720,diff --git a/packages/docs/docs/renderer/render-frames.md b/packages/docs/docs/renderer/render-frames.mdindex c87c667cb3..be788127bc 100644--- a/packages/docs/docs/renderer/render-frames.md+++ b/packages/docs/docs/renderer/render-frames.md@@ -27,7 +27,10 @@ Takes an object with the following keys:### `composition`-A video config, consisting out of `id`, `width`, `height`, `durationInFrames` and `fps`, where `id` is the composition ID. You can obtain an array of available compositions using [`getCompositions()`](/docs/renderer/get-compositions).+_VideoConfig_++An object describing a composition using `id`, `width`, `height`, `fps` and `durationInFrames`, `defaultProps` and `props`.+Call [`selectComposition()`](/docs/renderer/select-composition) or [`getCompositions()`](/docs/renderer/get-compositions) to get an array of possible configs.### `onStart`diff --git a/packages/docs/docs/renderer/render-media.md b/packages/docs/docs/renderer/render-media.mdindex b08d9428a9..a722c2982e 100644--- a/packages/docs/docs/renderer/render-media.md+++ b/packages/docs/docs/renderer/render-media.md@@ -33,9 +33,10 @@ If not specified or set to `null`, the file will be returned in-memory as a buff### `composition`-_TCompMetadata_+_VideoConfig_-An object describing a composition using `id`, `width`, `height`, `fps` and `durationInFrames`. Call [`getCompositions()`](/docs/renderer/get-compositions) to get an array of possible configs.+An object describing a composition using `id`, `width`, `height`, `fps` and `durationInFrames`, `defaultProps` and `props`.+Call [`selectComposition()`](/docs/renderer/select-composition) or [`getCompositions()`](/docs/renderer/get-compositions) to get an array of possible configs.### `codec`diff --git a/packages/docs/docs/renderer/render-still.md b/packages/docs/docs/renderer/render-still.mdindex 8bdac87602..fd920bf1e1 100644--- a/packages/docs/docs/renderer/render-still.md+++ b/packages/docs/docs/renderer/render-still.md@@ -59,7 +59,10 @@ Takes an object with the following properties:### `composition`-A video composition object, consisting of `id`, `height`, `width`, `durationInFrames` and `fps`. Use [`getCompositions()`](/docs/renderer/get-compositions) to get a list of available video configs.+_VideoConfig_++An object describing a composition using `id`, `width`, `height`, `fps` and `durationInFrames`, `defaultProps` and `props`.+Call [`selectComposition()`](/docs/renderer/select-composition) or [`getCompositions()`](/docs/renderer/get-compositions) to get an array of possible configs.### `serveUrl`