Skip to content

Commit

Permalink
Make videos play inline on iPhone
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Nov 9, 2023
1 parent 78c6698 commit 21cf3fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/atlas/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<preference name="AllowInlineMediaPlayback" value="true" />
<!-- The following node will be replaced by Optimize init script during Vite's build step (see ../plugins) -->
<optimize-script />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const ReferralSteps = () => {
onMouseLeave={() => (shouldSwitch.current = true)}
>
<StepVideoContainer>
<StyledStepVideo ref={videoRef} autoPlay loop muted>
<StyledStepVideo ref={videoRef} playsInline autoPlay loop muted>
<source src={videoSrcs[selectedStep]} type="video/mp4" />
</StyledStepVideo>
</StepVideoContainer>
Expand Down

0 comments on commit 21cf3fe

Please sign in to comment.