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:
parent
01272f492b
commit
09f4ace25b
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "sociowire-frontend",
|
||||
"private": true,
|
||||
"version": "0.0.93",
|
||||
"version": "0.0.94",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --host 0.0.0.0",
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ function HeroCamera({ post }) {
|
|||
function HeroVideo({ post }) {
|
||||
return (
|
||||
<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)} />
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue