Skip to content

Commit

Permalink
🐛 add muted property to videos for autoplay on chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Oct 17, 2023
1 parent 7eca78a commit 42227c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/gdocs/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function Video(props: VideoProps) {
return (
<figure className={cx(className)}>
<video
muted
controls
autoPlay={shouldAutoplay}
preload={shouldAutoplay ? "auto" : "none"}
Expand Down

0 comments on commit 42227c9

Please sign in to comment.