Skip to content

🎥 Make videos programmatically with React

explain dynamic duration example

Jonny Burgere4071e401358
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index ee829dfd2d..89fdc9c649 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -15,7 +15,8 @@ export const Index: React.FC = () => {
width={1080}
height={1080}
fps={30}
- durationInFrames={inputProps.duration ?? 20}
+ // Change the duration of the video dynamically by passing `--props='{"duration": 100}'`
+ durationInFrames={inputProps?.duration ?? 20}
/>
<Composition
id="nested"