Skip to content

Commit

Permalink
fix: add autoplay to videoblock if preview is enabled (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
benax-se authored Sep 6, 2024
1 parent 292b323 commit 8dc0f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VideoBlock/VideoBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const VideoBlock = (props: VideoBlockProps) => {
src && isPlaying
? `${src}?${getPageSearchParams({
...(attributes || {}),
...(autoplay ? AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES),
...(previewImg || autoplay ? AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES),
})}`
: undefined;

Expand Down

0 comments on commit 8dc0f82

Please sign in to comment.