Skip to content

Commit 5b3970c

Browse files
committed
hardcode autoplay values for safari
1 parent 33b846d commit 5b3970c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotcom-rendering/src/components/LoopVideoPlayer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,12 @@ export const LoopVideoPlayer = forwardRef(
125125
{/* eslint-disable-next-line jsx-a11y/media-has-caption -- Captions will be considered later. */}
126126
<video
127127
muted={true}
128+
autoPlay={true}
129+
loop={true}
130+
playsInline={true}
128131
id={loopVideoId}
129132
ref={ref}
130133
preload={preloadPartialData ? 'metadata' : 'none'}
131-
loop={true}
132-
playsInline={true}
133134
height={height}
134135
width={width}
135136
poster={posterImage}

0 commit comments

Comments
 (0)