Skip to content

🎥 Make videos programmatically with React

remove duplicate new video composition

JonnyBurger9db272443622
diff --git a/packages/example/src/NewVideo/NewVideo.tsx b/packages/example/src/NewVideo/NewVideo.tsx
deleted file mode 100644
index e95988c24a..0000000000
--- a/packages/example/src/NewVideo/NewVideo.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import {Video as NewVideo} from '@remotion/media';
-
-interface NewVideoProps {
- src?: string;
-}
-
-export const NewVideoExample: React.FC<NewVideoProps> = ({src}) => {
- if (!src) {
- return <div>No video source provided</div>;
- }
-
- return (
- <>
- <NewVideo src={src} />
- </>
- );
-};
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index 9e815e7a89..f3b80c66ca 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -131,7 +131,6 @@ import {EdgeBlur} from './EdgeBlur/EdgeBlur';
import {Empty} from './Empty';
import {JumpCuts, SAMPLE_SECTIONS, calculateMetadataJumpCuts} from './JumpCuts';
import {NewAudioExample} from './NewAudio/NewAudio';
-import {NewVideoExample} from './NewVideo/NewVideo';
import {LoopedOffthreadRemoteVideo} from './OffthreadRemoteVideo/LoopedOffthreadRemoteVideo';
import {MultiChannelAudio} from './OffthreadRemoteVideo/MultiChannelAudio';
import {NewVideoComp} from './OffthreadRemoteVideo/NewRemoteVideo';
@@ -671,37 +670,6 @@ export const Index: React.FC = () => {
/>
</Folder>
<Folder name="new-media-tags">
- <Composition
- id="new-video"
- component={NewVideoExample}
- fps={30}
- defaultProps={{
- src: staticFile('demo_smpte_h264_pcm.mkv'),
- }}
- calculateMetadata={async ({props}) => {
- const fps = 30;
-
- const {slowDurationInSeconds, dimensions} = await parseMedia({
- src: props.src as string,
- fields: {
- slowDurationInSeconds: true,
- dimensions: true,
- },
- });
-
- if (dimensions === null) {
- throw new Error('Dimensions are null');
- }
-
- return {
- props: props,
- durationInFrames: Math.round(slowDurationInSeconds * fps),
- fps,
- width: dimensions.width,
- height: dimensions.height,
- };
- }}
- />
<Composition
id="new-audio"
component={NewAudioExample}