Adding a video to the front page with autoplay - Venture Theme

Highlighted
Tourist
9 0 0

Hi!

I am trying to add a video to my frontpage. I know that I can upload it to youtube and then embed that code to the provided section, but what i want to know is if there is a way to upload the video to shopify and get the video through that link, plus, i want the video to autoplay when a user enters the site.

Note :  Even if there is no way to get the link through shopify please tell me how to autostart and loop the video on the front page. 

I am open to any suggestions, please. 

Thank You.

0 Likes
Highlighted
Shopify Partner
1012 209 253

Hello,

Upload video in active theme assets and after that use this code

<video autoplay  muted loop class="myVideo">
    <source src="{{ your_mp4_video_name | asset_url }}" type="video/mp4">
</video> 
Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
4 Likes
Highlighted
Tourist
9 0 0

Thank You so much for your reply. I am really sorry, i am new to shopify. I uploaded a test video file to the asset folder, now how do i display this particular video on the front page and where to which folder should i include the cold. Lets just say the name of the video is "myfile.mp4", so the should be changed to 

 

<video autoplay  muted loop class="myVideo">
    <source src="{{ myfile.mp4 | asset_url }}" type="video/mp4">
</video> 

 i dont know what to include for the bold & underlined letters. Please help.

0 Likes
Highlighted
New Member
4 0 0

Hi there, did you managed so solve this? I am trying to do the same with the Brooklyn them. 

0 Likes