Skip to content

🎥 Make videos programmatically with React

apple wow tutorial

Jonny Burgerbb127a4dc142
diff --git a/packages/docs/learn/2022-12-22-apple-wow.md b/packages/docs/learn/2022-12-22-apple-wow.md
index afa56cb8da..f8deb6e0bd 100644
--- a/packages/docs/learn/2022-12-22-apple-wow.md
+++ b/packages/docs/learn/2022-12-22-apple-wow.md
@@ -25,6 +25,10 @@ This tutorial is also available as a video version:
<AppleFireworksTutorial />
+## Source code
+
+[Github](https://github.com/remotion-dev/apple-wow-tutorial)
+
## Getting started
Start a new Remotion project and select the blank template:
diff --git a/packages/docs/src/components/AppleFireworksTutorial.tsx b/packages/docs/src/components/AppleFireworksTutorial.tsx
index 441394c4aa..1a1532a58e 100644
--- a/packages/docs/src/components/AppleFireworksTutorial.tsx
+++ b/packages/docs/src/components/AppleFireworksTutorial.tsx
@@ -1,16 +1,21 @@
+import BrowserOnly from "@docusaurus/BrowserOnly";
import React from "react";
import { VideoPlayerWithControls } from "./VideoPlayerWithControls";
export const AppleFireworksTutorial = () => {
return (
- <VideoPlayerWithControls
- playbackId="RDHz028sflhaMtuCm1ogQTdtq02aLTspWjLrnEIlDS1ZM"
- poster="https://image.mux.com/RDHz028sflhaMtuCm1ogQTdtq02aLTspWjLrnEIlDS1ZM/thumbnail.png"
- onError={(error) => {
- console.log(error);
- }}
- onLoaded={() => undefined}
- onSize={() => undefined}
- />
+ <BrowserOnly>
+ {() => (
+ <VideoPlayerWithControls
+ playbackId="RDHz028sflhaMtuCm1ogQTdtq02aLTspWjLrnEIlDS1ZM"
+ poster="https://image.mux.com/RDHz028sflhaMtuCm1ogQTdtq02aLTspWjLrnEIlDS1ZM/thumbnail.png"
+ onError={(error) => {
+ console.log(error);
+ }}
+ onLoaded={() => undefined}
+ onSize={() => undefined}
+ />
+ )}
+ </BrowserOnly>
);
};