Skip to content

🎥 Make videos programmatically with React

Update Video.tsx

Jonny Burger74962a5daf28
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 998b274e75..9d5dd213d4 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -350,6 +350,31 @@ export const Index: React.FC = () => {
height={1080}
fps={30}
durationInFrames={180 * 30}
+ defaultProps={{
+ isWaveform: false,
+ }}
+ />
+ <Composition
+ id="voice-visualization"
+ lazyComponent={() => import('./voice-visualization')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={180 * 30}
+ defaultProps={{
+ isWaveform: false,
+ }}
+ />
+ <Composition
+ id="audio-visualization-wave"
+ lazyComponent={() => import('./AudioVisualization')}
+ width={1080}
+ height={1080}
+ fps={30}
+ defaultProps={{
+ isWaveform: true,
+ }}
+ durationInFrames={30 * 30}
/>
</Folder>
<Folder name="three">