Skip to content

🎥 Make videos programmatically with React

fix types

Jonny Burger2dd0aa85a264
diff --git a/packages/example/src/HugePayload.tsx b/packages/example/src/HugePayload.tsx
index 2bac96be87..b39a270ef5 100644
--- a/packages/example/src/HugePayload.tsx
+++ b/packages/example/src/HugePayload.tsx
@@ -1,5 +1,4 @@
import {Img, useVideoConfig} from 'remotion';
-import {useVideo} from 'remotion/src/use-video';
import {z} from 'zod';
export const hugePayloadSchema = z.object({
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index 6227008c18..338b84fdc1 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -566,7 +566,7 @@ export const Index: React.FC = () => {
fps={30}
// Change the duration of the video dynamically by passing
// `--props='{"duration": 100}'`
- durationInFrames={inputProps?.duration ?? 20}
+ durationInFrames={(inputProps?.duration as number) ?? 20}
defaultProps={{
codec: 'mp4' as const,
offthread: false,