🎥 Make videos programmatically with React
Merge branch 'lambda-testing' into 22khz-testcase
Jonny Burgera721da16c44b
diff --cc packages/docs/docs/use-video-config.mdindex 62ae037953,0ce44a0177..119eef2df6--- a/packages/docs/docs/use-video-config.md+++ b/packages/docs/docs/use-video-config.md@@@ -10,25 -10,10 +10,27 @@@ Namely, `useVideoConfig` will return a- `height`: The height of the composition in pixels.- `fps`: The frame rate of the composition, in frames per seconds.- `durationInFrames` The duration of the composition in frames.+ - `id`: The composition ID.+ - `defaultProps`: The object that you have defined as the `defaultProps` in your composition.-Remember that you control these properties by passing them as props to `<Composition>`. Read the page about [the fundamentals](/docs/the-fundamentals) to learn how to define a composition.+These properties are controlled by passing them as props to [`<Composition>`](/docs/composition). Read the page about [the fundamentals](/docs/the-fundamentals) to read how to setup a Remotion project.++### Example++```tsx twoslash+import React from "react";+import { useVideoConfig } from "remotion";++export const MyComp: React.FC = () => {+ const { width, height, fps, durationInFrames } = useVideoConfig();+ console.log(width); // 1920+ console.log(height); // 1080+ console.log(fps); // 30;+ console.log(durationInFrames); // 300++ return <div>Hello World!</div>;+};+```## See also