Skip to content

🎥 Make videos programmatically with React

Update index.tsx

JonnyBurgerc1606ea65001
diff --git a/packages/example/src/SlicedVideo/index.tsx b/packages/example/src/SlicedVideo/index.tsx
index 4b454f22d4..420f3862a4 100644
--- a/packages/example/src/SlicedVideo/index.tsx
+++ b/packages/example/src/SlicedVideo/index.tsx
@@ -1,17 +1,17 @@
import {Video} from '@remotion/media';
import React from 'react';
-import {Sequence, staticFile, useVideoConfig} from 'remotion';
+import {Sequence, useVideoConfig} from 'remotion';
const SLICE_DURATION_FRAMES = 3; // 0.1sec at 30fps
const NUM_SLICES = 100;
const PREMOUNT_SEC = 0.5;
export const SlicedVideo: React.FC = () => {
- const src = staticFile('sliced-video.mp4');
+ const src = 'https://remotion.media/video.mp4';
const {fps} = useVideoConfig();
return (
- <Sequence from={45} premountFor={45}>
+ <Sequence premountFor={45}>
{new Array(NUM_SLICES).fill(0).map((_, i) => {
const from = i * SLICE_DURATION_FRAMES;
return (