🎥 Make videos programmatically with React
premount multiple remote videos
Jonny Burger2ea648b2dc3b
diff --git a/packages/example/src/Premount/RemoteVideos.tsx b/packages/example/src/Premount/RemoteVideos.tsxnew file mode 100644index 0000000000..65e7cb8f37--- /dev/null+++ b/packages/example/src/Premount/RemoteVideos.tsx@@ -0,0 +1,21 @@+import React from 'react';+import {AbsoluteFill, Series, staticFile, Video} from 'remotion';++export const PremountedRemoteVideos: React.FC = () => {+ return (+ <AbsoluteFill>+ <Series>+ <Series.Sequence durationInFrames={200} premountFor={20}>+ <Video pauseWhenBuffering src={staticFile('framer.webm')} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={700} premountFor={100}>+ <Video+ pauseWhenBuffering+ startFrom={1000}+ src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"+ />+ </Series.Sequence>+ </Series>+ </AbsoluteFill>+ );+};diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsxindex 6a08ef0ccd..0e9b7e0e9a 100644--- a/packages/example/src/Root.tsx+++ b/packages/example/src/Root.tsx@@ -37,6 +37,7 @@ import {} from './OffthreadRemoteVideo/OffthreadRemoteVideo';import {OrbScene} from './Orb';import {PremountedExample} from './Premount';+import {PremountedRemoteVideos} from './Premount/RemoteVideos';import InfinityVideo from './ReallyLongVideo';import RemoteVideo from './RemoteVideo';import RiveVehicle from './Rive/RiveExample';@@ -1079,6 +1080,14 @@ export const Index: React.FC = () => {durationInFrames={300}width={1080}/>+ <Composition+ id="premounted-remote"+ component={PremountedRemoteVideos}+ fps={30}+ height={1080}+ durationInFrames={300}+ width={1080}+ /></Folder><Folder name="Transitions"><Composition