Skip to content

🎥 Make videos programmatically with React

Update NewVideo.tsx

JonnyBurger5c3da679dd13
diff --git a/packages/example/src/NewVideo.tsx b/packages/example/src/NewVideo.tsx
index ccdcd56019..b0b236152f 100644
--- a/packages/example/src/NewVideo.tsx
+++ b/packages/example/src/NewVideo.tsx
@@ -3,7 +3,7 @@ import {CalculateMetadataFunction, Composition} from 'remotion';
// https://www.remotion.dev/docs/mediabunny/metadata
import {getMediaMetadata} from './get-media-metadata';
-const src = 'https://remotion.media/BigBuckBunny.mp4';
+const src = 'https://remotion.media/video.mp4';
export const calculateMetadataFn: CalculateMetadataFunction<
Record<string, unknown>
@@ -19,15 +19,7 @@ export const calculateMetadataFn: CalculateMetadataFunction<
};
export const Component = () => {
- return (
- <Video
- src={src}
- trimBefore={640}
- trimAfter={1800}
- loop
- debugAudioScheduling
- />
- );
+ return <Video src={src} />;
};
export const NewVideoComp = () => {