Skip to content

Commit

Permalink
馃悰 fix: make video autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Apr 27, 2024
1 parent 4cf4a84 commit 7508fc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Video/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ const Video = memo<VideoProps>(
</Flexbox>
)}
<video
autoPlay
className={cx(styles.video, classNames?.video, className)}
controls={showControls}
height={height}
muted
onEnded={() => setIsPlaying(false)}
onMouseEnter={onVideoMouseEnter}
onMouseLeave={onVideoMouseLeave}
Expand Down

0 comments on commit 7508fc0

Please sign in to comment.