Skip to content

Commit

Permalink
chore: add playsInline for videos with autoPlay attribute
Browse files Browse the repository at this point in the history
This will prevent videos from playing in full-screen unexpectedly on iOS.

Read more: https://jahir.dev/blog/autoplay-videos-ux
  • Loading branch information
jahirfiquitiva committed Mar 1, 2024
1 parent 364d57b commit 6935fcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/pages/blog/lint.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ _Feeling lost? Yeah, us too (+99% of all devs)_
_Get profile information within VSCode!_

<div className="pt-4">
<video src="/lint/renders.mp4" controls autoPlay />
<video src="/lint/renders.mp4" controls autoPlay playsInline />
</div>

</Tab>
Expand Down Expand Up @@ -292,13 +292,13 @@ After capturing the renders, we extend the compiler to asynchronously collect bu

<Tab>

<video src="/lint/renders.mp4" controls autoPlay />
<video src="/lint/renders.mp4" controls autoPlay playsInline />

</Tab>

<Tab>

<video src="/lint/bundles.mp4" controls autoPlay />
<video src="/lint/bundles.mp4" controls autoPlay playsInline />

</Tab>

Expand Down

0 comments on commit 6935fcd

Please sign in to comment.