Skip to content

🎥 Make videos programmatically with React

disable failing metadata because it breaks getCompositions()

Jonny Burgerbd264d4b1b49
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 0a1610b0d7..d5c7f8253c 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -81,7 +81,11 @@ export const Index: React.FC = () => {
await new Promise((r) => {
setTimeout(r, 1000);
});
- throw new Error('Failed to calculate metadata');
+ // Enable this for testing, however it will break getCompositions():
+ // throw new Error('Failed to calculate metadata');
+ return {
+ props: {duration: 100},
+ };
}, []);
return (