Auto-play videos when opening post (v0.0.94)

- Add autoPlay to HeroVideo component
- Videos now start playing automatically when post opens

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Your Name 2026-01-20 07:39:39 +00:00
parent 01272f492b
commit 09f4ace25b
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "sociowire-frontend", "name": "sociowire-frontend",
"private": true, "private": true,
"version": "0.0.93", "version": "0.0.94",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite --host 0.0.0.0", "dev": "vite --host 0.0.0.0",

View File

@ -314,7 +314,7 @@ function HeroCamera({ post }) {
function HeroVideo({ post }) { function HeroVideo({ post }) {
return ( return (
<div className="absolute inset-0 bg-black flex items-center justify-center"> <div className="absolute inset-0 bg-black flex items-center justify-center">
<video controls playsInline className="max-w-full max-h-full object-contain" <video autoPlay playsInline controls className="max-w-full max-h-full object-contain"
src={normalizeMediaUrl(post?.video_url)} poster={getHeroImage(post)} /> src={normalizeMediaUrl(post?.video_url)} poster={getHeroImage(post)} />
</div> </div>
); );