Enable video autoplay on mobile devices by default
Update VideoCard component to set `muted` to `true` on mobile viewports (width < 768px) to enable autoplay functionality. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 344ec1e0-1186-4058-bbff-2e9619a7b1e0 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/344ec1e0-1186-4058-bbff-2e9619a7b1e0/FgaI1Sc
This commit is contained in:
parent
b8c7a9cc19
commit
8a2d5403ad
@ -169,7 +169,7 @@ export default function VideoCard({ video, onClick, className = "", hideOverlay
|
|||||||
objectFit: 'cover'
|
objectFit: 'cover'
|
||||||
}}
|
}}
|
||||||
autoPlay
|
autoPlay
|
||||||
muted={false}
|
muted={window.innerWidth >= 768 ? false : true}
|
||||||
loop
|
loop
|
||||||
playsInline
|
playsInline
|
||||||
controls={false}
|
controls={false}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user