Skip to content

🎥 Make videos programmatically with React

oh!

JonnyBurger2592365638ab
diff --git a/bun.lock b/bun.lock
index 520446c5f0..67d1bda165 100644
--- a/bun.lock
+++ b/bun.lock
@@ -330,6 +330,7 @@
"@docusaurus/theme-common": "3.8.1",
"@docusaurus/types": "3.8.1",
"@mdx-js/react": "3.0.1",
+ "@react-three/fiber": "9.2.0",
"@remotion-dev/cube-presentation": "https://www.remotion.pro/pkg/cube-transition/1.0.2/docs",
"@remotion/animated-emoji": "workspace:*",
"@remotion/animation-utils": "workspace:*",
@@ -400,6 +401,7 @@
"zod": "3.22.3",
},
"devDependencies": {
+ "@react-three/fiber": "9.2.0",
"@tsconfig/docusaurus": "^1.0.5",
"@types/bun": "1.3.0",
"@types/color-namer": "^1.3.0",
@@ -4098,7 +4100,7 @@
"bun": ["[email protected]", "", { "optionalDependencies": { "@oven/bun-darwin-aarch64": "1.1.30", "@oven/bun-darwin-x64": "1.1.30", "@oven/bun-darwin-x64-baseline": "1.1.30", "@oven/bun-linux-aarch64": "1.1.30", "@oven/bun-linux-x64": "1.1.30", "@oven/bun-linux-x64-baseline": "1.1.30", "@oven/bun-windows-x64": "1.1.30", "@oven/bun-windows-x64-baseline": "1.1.30" }, "os": [ "linux", "win32", "darwin", ], "cpu": [ "x64", "arm64", ], "bin": { "bun": "bin/bun.exe", "bunx": "bin/bun.exe" } }, "sha512-ysRL1pq10Xba0jqVLPrKU3YIv0ohfp3cTajCPtpjCyppbn3lfiAVNpGoHfyaxS17OlPmWmR67UZRPw/EueQuug=="],
- "bun-plugin-tailwind": ["[email protected]", "", { "peerDependencies": { "typescript": "5.8.2" } }, "sha512-qtAXMNGG4R0UGGI8zWrqm2B7BdXqx48vunJXBPzfDOHPA5WkRUZdTSbE7TFwO4jLhYqSE23YMWsM9NhE6ovobw=="],
+ "bun-plugin-tailwind": ["[email protected]", "", { "dependencies": { "tailwindcss": "4.0.0-beta.9" }, "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-rTbzx+pK3F3cqgbtfbYibfWfKSWdcMNjdPTHgm+BbPhZWzMkBR6NpGqmKExJuIvdKRZgqoA0vd2/lke6rwZqMA=="],
"bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-u8X0thhx+yJ0KmkxuEo9HAtdfgCBaM/aI9K90VQcQioAmkVp3SG3FkwWGibUFz3WdXAdcsqOcbU40lK7tbHdkQ=="],
@@ -7636,6 +7638,8 @@
"@remotion/media/vitest": ["[email protected]", "", { "dependencies": { "@types/chai": "5.2.2", "@vitest/expect": "3.2.4", "@vitest/mocker": "3.2.4", "@vitest/pretty-format": "3.2.4", "@vitest/runner": "3.2.4", "@vitest/snapshot": "3.2.4", "@vitest/spy": "3.2.4", "@vitest/utils": "3.2.4", "chai": "5.3.3", "debug": "4.4.1", "expect-type": "1.2.2", "magic-string": "0.30.17", "pathe": "2.0.3", "picomatch": "4.0.2", "std-env": "3.9.0", "tinybench": "2.9.0", "tinyexec": "0.3.2", "tinyglobby": "0.2.14", "tinypool": "1.1.1", "tinyrainbow": "2.0.0", "vite": "5.4.20", "vite-node": "3.2.4", "why-is-node-running": "2.3.0" }, "peerDependencies": { "@vitest/browser": "3.2.4" }, "optionalPeers": ["@vitest/browser"], "bin": { "vitest": "vitest.mjs" } }, "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A=="],
+ "@remotion/promo-pages/bun-plugin-tailwind": ["[email protected]", "", { "peerDependencies": { "typescript": "5.8.2" } }, "sha512-qtAXMNGG4R0UGGI8zWrqm2B7BdXqx48vunJXBPzfDOHPA5WkRUZdTSbE7TFwO4jLhYqSE23YMWsM9NhE6ovobw=="],
+
"@remotion/promo-pages/hls.js": ["[email protected]", "", {}, "sha512-C020dKWEJcyvLnrqsFKW4q6D/6IEzKWdhktIS5bgoyEFE8lHgrFBq4RIngdy113abJOlIruhv8qjg7UX8hwxOw=="],
"@remotion/promo-pages/tailwindcss": ["[email protected]", "", {}, "sha512-QNbdmeS979Efzim2g/bEvfuh+fTcIdp1y7gA+sb6OYSW74rt7Cr7M78AKdf6HqWT3d5AiTb7SwTT3sLQxr4/qw=="],
@@ -7920,6 +7924,8 @@
"browserify-zlib/pako": ["[email protected]", "", {}, "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA=="],
+ "bun-plugin-tailwind/tailwindcss": ["[email protected]", "", {}, "sha512-96KpsfQi+/sFIOfyFnGzyy5pobuzf1iMBD9NVtelerPM/lPI2XUS4Kikw9yuKRniXXw77ov1sl7gCSKLsn6CJA=="],
+
"cacache/fs-minipass": ["[email protected]", "", { "dependencies": { "minipass": "7.1.2" } }, "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw=="],
"cacache/lru-cache": ["[email protected]", "", {}, "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA=="],
diff --git a/packages/docs/docs/player/premounting.mdx b/packages/docs/docs/player/premounting.mdx
index bc13f7406f..ef5ed6bbba 100644
--- a/packages/docs/docs/player/premounting.mdx
+++ b/packages/docs/docs/player/premounting.mdx
@@ -101,6 +101,7 @@ const PremountedSequenceRefForwardingFunction: React.ForwardRefRenderFunction<
return {
...passedStyle,
opacity: active ? 0 : 1,
+ // @ts-ignore Only in the docs - it will not give a type error in a Remotion project
pointerEvents: active ? 'none' : (passedStyle?.pointerEvents ?? 'auto'),
};
}, [active, passedStyle]);
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 1cb406b19c..2418a97e6a 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -92,6 +92,7 @@
"react-dom": "19.0.0",
"remark-shiki-twoslash": "^3.1.3",
"remotion": "workspace:*",
+ "@react-three/fiber": "9.2.0",
"three": "0.178.0",
"uuid": "^8.3.2",
"zod": "3.22.3",
@@ -108,6 +109,7 @@
"@types/bun": "1.3.0",
"lodash.sortby": "^4.7.0",
"url-loader": "^4.1.1",
- "openai": "4.67.1"
+ "openai": "4.67.1",
+ "@react-three/fiber": "9.2.0"
}
}
diff --git a/packages/promo-pages/bundle.ts b/packages/promo-pages/bundle.ts
index 882aa273ba..9aef82ff40 100644
--- a/packages/promo-pages/bundle.ts
+++ b/packages/promo-pages/bundle.ts
@@ -41,6 +41,7 @@ const result = await Bun.build({
});
for (const output of result.outputs) {
+ console.log('Writing', output.path);
await Bun.write('dist/' + output.path, await output.text());
}