Skip to content

🎥 Make videos programmatically with React

Restore index.tsx

Jonny Burgerb52663180050
diff --git a/packages/example/src/RemoteVideo/index.tsx b/packages/example/src/RemoteVideo/index.tsx
index 3a1849a656..6ed00fd38a 100644
--- a/packages/example/src/RemoteVideo/index.tsx
+++ b/packages/example/src/RemoteVideo/index.tsx
@@ -1,7 +1,14 @@
-import {staticFile, Video} from 'remotion';
+import {interpolate, Video} from 'remotion';
const RemoteVideo: React.FC = () => {
- return <Video src={staticFile('ending.mp4')} />;
+ return (
+ <Video
+ volume={(f) =>
+ interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
+ }
+ src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
+ />
+ );
};
export default RemoteVideo;