Skip to content

🎥 Make videos programmatically with React

Docs: Autoplay muted element previews (#8753)

Igor Samokhovets92a9c319ce06
diff --git a/packages/docs/src/components/Elements/ElementPreview.tsx b/packages/docs/src/components/Elements/ElementPreview.tsx
index a3351e8d10..b28020d119 100644
--- a/packages/docs/src/components/Elements/ElementPreview.tsx
+++ b/packages/docs/src/components/Elements/ElementPreview.tsx
@@ -28,12 +28,15 @@ export const ElementPreview: React.FC<ElementPreviewProps> = ({
>
<Player
acknowledgeRemotionLicense
+ autoPlay
component={component}
durationInFrames={durationInFrames}
fps={fps}
compositionWidth={width}
compositionHeight={height}
controls
+ initiallyMuted
+ loop
style={{
width: '100%',
}}