Skip to content

🎥 Make videos programmatically with React

remove lazyComponent - cannot work with next.js SSR

Jonny Burgerba922843de59
diff --git a/packages/player-example/pages/index.tsx b/packages/player-example/pages/index.tsx
index cd77b53ca2..4eb7f1e3d7 100644
--- a/packages/player-example/pages/index.tsx
+++ b/packages/player-example/pages/index.tsx
@@ -27,12 +27,12 @@ export default function () {
justifyContent: 'center',
}}
>
- <App lazyComponent={Car} durationInFrames={500} />
+ <App component={CarSlideshow} durationInFrames={500} />
<App component={VideoautoplayDemo} durationInFrames={2700} />
</div>
<h2>Thumbnail</h2>
<Thumbnail
- lazyComponent={Car}
+ component={CarSlideshow}
frameToDisplay={480}
compositionHeight={200}
compositionWidth={500}
@@ -43,6 +43,8 @@ export default function () {
}}
inputProps={{
title: 'Hi there',
+ bgColor: 'black',
+ color: 'white',
}}
/>
<ThumbnailDemo />