Skip to content

🎥 Make videos programmatically with React

add remote video example for testing

Jonny Burger4eeb1c3faf04
diff --git a/packages/example/src/RemoteVideo/index.tsx b/packages/example/src/RemoteVideo/index.tsx
new file mode 100644
index 0000000000..90229952df
--- /dev/null
+++ b/packages/example/src/RemoteVideo/index.tsx
@@ -0,0 +1,11 @@
+import {Video} from 'remotion';
+
+const RemoteVideo: React.FC = () => {
+ return (
+ <div>
+ <Video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_1MB.mp4" />
+ </div>
+ );
+};
+
+export default RemoteVideo;
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index a8abcbf254..2e5e0e1973 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -2,6 +2,7 @@ import React from 'react';
import {Composition} from 'remotion';
import {Framer} from './Framer';
import {MissingImg} from './MissingImg';
+import RemoteVideo from './RemoteVideo';
import {TenFrameTester} from './TenFrameTester';
import {VideoTesting} from './VideoTesting';
@@ -180,6 +181,14 @@ export const Index: React.FC = () => {
fps={30}
durationInFrames={100}
/>
+ <Composition
+ id="remote-video"
+ component={RemoteVideo}
+ width={1920}
+ height={1080}
+ fps={30}
+ durationInFrames={30}
+ />
</>
);
};