We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e241d3 commit e854c65Copy full SHA for e854c65
dotcom-rendering/src/components/LoopVideoPlayer.tsx
@@ -145,7 +145,8 @@ export const LoopVideoPlayer = forwardRef(
145
css={videoStyles(width, height)}
146
>
147
{/* Only mp4 is currently supported. Assumes the video file type is mp4. */}
148
- <source src={src} type="video/mp4" />
+ {/* The start time is set to 1ms so that Safari will autoplay the video */}
149
+ <source src={`${src}#t=0.001`} type="video/mp4" />
150
{fallbackImageComponent}
151
</video>
152
{ref && 'current' in ref && ref.current && isPlayable && (
0 commit comments