🎥 Make videos programmatically with React
Remove test composition from PR
Jonny Burger65fbbfca820b
diff --git a/packages/example/src/Premount/CascadingPremount.tsx b/packages/example/src/Premount/CascadingPremount.tsxdeleted file mode 100644index 926e2bc779..0000000000--- a/packages/example/src/Premount/CascadingPremount.tsx+++ /dev/null@@ -1,38 +0,0 @@-import {Video} from '@remotion/media';-import React from 'react';-import {Sequence, useVideoConfig} from 'remotion';--const SLICE_DURATION_FRAMES = 3; // 0.1sec at 30fps-const NUM_SLICES = 10;-const PREMOUNT_SEC = 0.5;--/**- * Reproduces https://github.com/remotion-dev/remotion/issues/6727- *- * The outer Sequence starts at frame 15 with premountFor={15},- * so it premounts at frame 0. Each inner Sequence also has premountFor={15}.- * The issue is that 6 videos are premounted on frame 0 because- * premounting cascades through nested Sequences unexpectedly.- */-export const CascadingPremount: React.FC = () => {- const src = 'https://remotion.media/video.mp4';- const {fps} = useVideoConfig();-- return (- <Sequence from={15} premountFor={15}>- {new Array(NUM_SLICES).fill(0).map((_, i) => {- const from = i * SLICE_DURATION_FRAMES;- return (- <Sequence- key={i}- from={from}- durationInFrames={SLICE_DURATION_FRAMES}- premountFor={PREMOUNT_SEC * fps}- >- <Video src={src} trimBefore={from} />- </Sequence>- );- })}- </Sequence>- );-};diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsxindex cd167ee550..70fd2147c9 100644--- a/packages/example/src/Root.tsx+++ b/packages/example/src/Root.tsx@@ -51,7 +51,6 @@ import {PostmountWithStyles,} from './Postmount/PostmountExample';import {PremountedExample} from './Premount';-import {CascadingPremount} from './Premount/CascadingPremount';import {PremountedRemoteVideos} from './Premount/RemoteVideos';import ReactSvg from './ReactSvg';import InfinityVideo from './ReallyLongVideo';@@ -1441,14 +1440,6 @@ export const Index: React.FC = () => {durationInFrames={300}width={1920}/>- <Composition- id="cascading-premount"- component={CascadingPremount}- fps={30}- height={1080}- durationInFrames={60}- width={1920}- /></Folder><Folder name="Postmount"><Composition