Skip to content

🎥 Make videos programmatically with React

add an example with default codec

Jonny Burgerb58481275546
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index fe78a036b3..f6a1b0242c 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -603,6 +603,19 @@ export const Index: React.FC = () => {
fps={30}
durationInFrames={100}
/>
+ <Composition
+ id="default-codec"
+ component={ColorInterpolation}
+ width={1280}
+ height={720}
+ fps={30}
+ calculateMetadata={() => {
+ return {
+ defaultCodec: 'aac',
+ };
+ }}
+ durationInFrames={100}
+ />
<Still
id="static-demo"
component={StaticDemo}