Skip to content

Commit 8dc0f82

Browse files
authored
fix: add autoplay to videoblock if preview is enabled (#1005)
1 parent 292b323 commit 8dc0f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/VideoBlock/VideoBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const VideoBlock = (props: VideoBlockProps) => {
101101
src && isPlaying
102102
? `${src}?${getPageSearchParams({
103103
...(attributes || {}),
104-
...(autoplay ? AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES),
104+
...(previewImg || autoplay ? AUTOPLAY_ATTRIBUTES : NO_AUTOPLAY_ATTRIBUTES),
105105
})}`
106106
: undefined;
107107

0 commit comments

Comments
 (0)