🎥 Make videos programmatically with React
`@remotion/jonnys-videos`: Remove dead code
JonnyBurger09da5287962a
diff --git a/bun.lock b/bun.lockindex 5eed491f6f..1850eb381e 100644--- a/bun.lock+++ b/bun.lock@@ -983,7 +983,6 @@"@remotion/media": "workspace:*","@remotion/noise": "workspace:*","@remotion/shapes": "workspace:*",- "@remotion/starburst": "workspace:*","react": "catalog:","react-dom": "catalog:","remotion": "workspace:*",diff --git a/packages/jonnys-videos/package.json b/packages/jonnys-videos/package.jsonindex 8560f2a931..ae8ee93e8a 100644--- a/packages/jonnys-videos/package.json+++ b/packages/jonnys-videos/package.json@@ -22,7 +22,6 @@"@remotion/media": "workspace:*","@remotion/noise": "workspace:*","@remotion/shapes": "workspace:*",- "@remotion/starburst": "workspace:*","react": "catalog:","react-dom": "catalog:","remotion": "workspace:*"diff --git a/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsx b/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsxindex 105333c071..62aa65c064 100644--- a/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsx+++ b/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsx@@ -6,8 +6,6 @@ import {Clip1} from './Clip1';import {Clip3} from './Clip3';import {Clip4} from './Clip4';-export const BIRTHDAY_PARTY_COMPILATION_DURATION_IN_FRAMES = 346;-export const BirthdayPartyCompilation: React.FC = () => {const frame = useCurrentFrame();return (diff --git a/packages/jonnys-videos/src/disco-light-show/Clip1.tsx b/packages/jonnys-videos/src/disco-light-show/Clip1.tsxindex e89ead5525..670f9ebbd2 100644--- a/packages/jonnys-videos/src/disco-light-show/Clip1.tsx+++ b/packages/jonnys-videos/src/disco-light-show/Clip1.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const Clip1: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/Clip2.tsx b/packages/jonnys-videos/src/disco-light-show/Clip2.tsxindex 1138ff69a8..eb94d7e602 100644--- a/packages/jonnys-videos/src/disco-light-show/Clip2.tsx+++ b/packages/jonnys-videos/src/disco-light-show/Clip2.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const Clip2: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/Clip4.tsx b/packages/jonnys-videos/src/disco-light-show/Clip4.tsxindex bf73e45e82..79f1c86f10 100644--- a/packages/jonnys-videos/src/disco-light-show/Clip4.tsx+++ b/packages/jonnys-videos/src/disco-light-show/Clip4.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const Clip4: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/Clip5.tsx b/packages/jonnys-videos/src/disco-light-show/Clip5.tsxindex 0ab0bb05d9..986d668f0e 100644--- a/packages/jonnys-videos/src/disco-light-show/Clip5.tsx+++ b/packages/jonnys-videos/src/disco-light-show/Clip5.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const Clip5: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/Compilation.tsx b/packages/jonnys-videos/src/disco-light-show/Compilation.tsxindex 1214ffc9bc..5fe97cac7d 100644--- a/packages/jonnys-videos/src/disco-light-show/Compilation.tsx+++ b/packages/jonnys-videos/src/disco-light-show/Compilation.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const Compilation: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsx b/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsxindex 2c103acd03..8c31171714 100644--- a/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsx+++ b/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const DragInDemo: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/EffectShow.tsx b/packages/jonnys-videos/src/disco-light-show/EffectShow.tsxindex 47214b4964..cf6d226a2f 100644--- a/packages/jonnys-videos/src/disco-light-show/EffectShow.tsx+++ b/packages/jonnys-videos/src/disco-light-show/EffectShow.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const EffectShow: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/HtmlInCanvasVideoRepro.tsx b/packages/jonnys-videos/src/disco-light-show/HtmlInCanvasVideoRepro.tsxdeleted file mode 100644index 1e576f54c0..0000000000--- a/packages/jonnys-videos/src/disco-light-show/HtmlInCanvasVideoRepro.tsx+++ /dev/null@@ -1,36 +0,0 @@-import {dropShadow} from '@remotion/effects/drop-shadow';-import {scale} from '@remotion/effects/scale';-import {Video} from '@remotion/media';-import {Arrow} from '@remotion/shapes';-import {HtmlInCanvas, Img, Sequence} from 'remotion';--const IMAGE =- "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='90' fill='blue'/%3E%3C/svg%3E";--export const HtmlInCanvasVideoRepro: React.FC = () => {- return (- <HtmlInCanvas name="Video inside HtmlInCanvas" width={1280} height={720}>- <Video- src="https://remotion.media/video.mp4"- objectFit="cover"- style={{width: '100%', height: '100%'}}- />- <Sequence from={90}>- <Arrow- length={300}- headWidth={185}- headLength={120}- shaftWidth={80}- direction="right"- fill="white"- effects={[scale({scale: 0.8}), dropShadow({radius: 82})]}- />- <Img- src={IMAGE}- style={{width: 200, height: 200, translate: '400px 0'}}- effects={[dropShadow({radius: 82})]}- />- </Sequence>- </HtmlInCanvas>- );-};diff --git a/packages/jonnys-videos/src/disco-light-show/HtmlInCanvasVideoReproRoot.tsx b/packages/jonnys-videos/src/disco-light-show/HtmlInCanvasVideoReproRoot.tsxdeleted file mode 100644index bfb0273fc2..0000000000--- a/packages/jonnys-videos/src/disco-light-show/HtmlInCanvasVideoReproRoot.tsx+++ /dev/null@@ -1,17 +0,0 @@-import {Composition, registerRoot} from 'remotion';-import {HtmlInCanvasVideoRepro} from './HtmlInCanvasVideoRepro';--const HtmlInCanvasVideoReproRoot: React.FC = () => {- return (- <Composition- id="HtmlInCanvasVideoRepro"- component={HtmlInCanvasVideoRepro}- durationInFrames={150}- fps={30}- width={1280}- height={720}- />- );-};--registerRoot(HtmlInCanvasVideoReproRoot);diff --git a/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsx b/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsxindex 9a60198fa4..9969448cdd 100644--- a/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsx+++ b/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const HuggingFace: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/Separate.tsx b/packages/jonnys-videos/src/disco-light-show/Separate.tsxindex 31af48ded9..d699dc0af1 100644--- a/packages/jonnys-videos/src/disco-light-show/Separate.tsx+++ b/packages/jonnys-videos/src/disco-light-show/Separate.tsx@@ -1,6 +1,5 @@import {Video} from '@remotion/media';import React from 'react';-import {} from 'remotion';import {asset} from './assets';export const Separate: React.FC = () => {diff --git a/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsx b/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsxindex a1a9664156..f350faa022 100644--- a/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsx+++ b/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsx@@ -81,7 +81,6 @@ export const TextBehindVideoSeriesFirst20sComposition: React.FC = () => {<Clip5 /></Sequence><Sequence showInTimeline={false}>- (<Videosrc={asset('text-behind-video-series-first-20s.mp4')}style={{@@ -117,7 +116,6 @@ export const TextBehindVideoSeriesFirst20sComposition: React.FC = () => {durationInFrames={190}trimBefore={31}/>- )</Sequence></>);