How do I make my videos autoplay on my site upon loading?

EthanOSHOP
Excursionist
55 0 7

Image 23-01-2024 at 19.32.jpeg

Replies 6 (6)

Liqiud_xPert_SJ
Shopify Partner
384 42 57

Hi @EthanOSHOP welcome to the Shopify Communiyt,

Please confirm if you are using Youtube vidoe or self hosted video? 

1- if you are using youtube video please pass these parameters into your video URL " ?autoplay=1&mute=1&enablejsapi=1" at the end.

2- if you are using self hosted url you need to follow this 

 

<video width="440px" loop="true" autoplay="autoplay" controls muted>

example below

<video width="440px" loop="true" autoplay="autoplay" controls muted>
  <source src="yourvideo/CorporateVideo.mp4" type="video/mp4" />
  <source src="yourvideo/CorporateVideo.ogv" type="video/ogv" />
  <source src="yourvideo/CorporateVideo.webm" type="video/webm" />
</video>

 

Thanks

- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
EthanOSHOP
Excursionist
55 0 7

I am using a self hosted one

Where do I put this code?

Danishshopdev
Shopify Partner
163 17 20

Hello There,

Please share your store URL and password.
So that I will check and let you know the exact solution here.

 

Danish | Full Stack Developer @ Esire.Inc
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Hire me for your next task! | Email | WhatsApp| Website
EthanOSHOP
Excursionist
55 0 7

wintheoryco.com

There is no password

Danishshopdev
Shopify Partner
163 17 20

can you share the source of the video?

Danish | Full Stack Developer @ Esire.Inc
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Hire me for your next task! | Email | WhatsApp| Website