Skip to content

🎥 Make videos programmatically with React

@remotion/brand: Add Studio handoff entry point

Jonny Burgerfb10208c2eab
diff --git a/packages/brand/package.json b/packages/brand/package.json
index 5d080c71ca..39aaa67159 100644
--- a/packages/brand/package.json
+++ b/packages/brand/package.json
@@ -10,6 +10,7 @@
],
"scripts": {
"dev": "remotion studio",
+ "dev:studio-code-handoff": "remotion studio src/studio-code-handoff/index.ts",
"bundle": "remotion bundle --rspack --public-path /brand/",
"capture-docs": "bun scripts/capture-doc-pages.ts",
"lint": "eslint src",
diff --git a/packages/brand/src/studio-code-handoff/Root.tsx b/packages/brand/src/studio-code-handoff/Root.tsx
new file mode 100644
index 0000000000..0fac70dc64
--- /dev/null
+++ b/packages/brand/src/studio-code-handoff/Root.tsx
@@ -0,0 +1,25 @@
+import {Composition, Folder} from 'remotion';
+import {MyCompositionSchema} from '../announcements/whats-new-in-remotion/Composition';
+import {Scene11} from '../announcements/whats-new-in-remotion/Scene11';
+
+export const StudioCodeHandoffRoot: React.FC = () => {
+ return (
+ <>
+ <Folder name="Logo" />
+ <Folder name="Showcases" />
+ <Folder name="SocialMediaAnnouncements">
+ <Composition
+ id="Outro"
+ component={Scene11}
+ durationInFrames={742}
+ fps={30}
+ width={1920}
+ height={1080}
+ schema={MyCompositionSchema}
+ defaultProps={{platform: 'youtube'}}
+ />
+ </Folder>
+ <Folder name="VideoElements" />
+ </>
+ );
+};
diff --git a/packages/brand/src/studio-code-handoff/index.ts b/packages/brand/src/studio-code-handoff/index.ts
new file mode 100644
index 0000000000..b78e046d40
--- /dev/null
+++ b/packages/brand/src/studio-code-handoff/index.ts
@@ -0,0 +1,9 @@
+import {registerRoot} from 'remotion';
+import '../index.css';
+import {StudioCodeHandoffRoot} from './Root';
+
+if (typeof window !== 'undefined') {
+ window.remotion_initialFrame = 655;
+}
+
+registerRoot(StudioCodeHandoffRoot);