How to add autoplay background video on Venture theme?

Revina
New Member
3 0 0

 

I've added a video to Venture theme and want it as an auto play background video as in Debut theme.

What should I do to add auto play background video on Venture theme?

This is the website link:

artem-com.myshopify.com

 

I've tried these. Those don't work.

<iframe width="560" height="315" src="https://www.youtube.com/embed/kkIabnfvJI8"?rel=0&autoplay=1" frameborder="0" allowfullscreen=""></iframe>

<iframe width="560" height="315" src="https://www.youtube.com/embed/kkIabnfvJI8"?autoplay=1" frameborder="0" allowfullscreen=""></iframe>

<iframe width="1150" height="350" src="https://www.youtube.com/embed/Nj2U6rhnucI" frameborder="0" allow="autoplay" allowfullscreen></iframe>

 

0 Likes
BananaMoon
Excursionist
18 1 1

Hello,

It looks like it's a CRSF or cross-domain issue, preventing the video to play at all.

Can you make sure everything is ok with CRSF & cookies? I'm sure it will help.

Also Google recently updated terms (a lot of terms).

Have fun,

François

0 Likes
Revina
New Member
3 0 0

so, do I need to use csrf token?

I am not a programmer, I am just a beginner in shopify trying to modify the them

0 Likes
BananaMoon
Excursionist
18 1 1

In some themes it's integrated,

But anyways to make autoplay work in an easy way, it would be easier to translate the youtube file into .mp4, then host it on Shopify CDN (In your shop, Settings > Files). That way, no cross-domain issue with video.

Have fun with Shopify,

0 Likes

@Revina 

Please share the password for your storefront.

Thank you

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Using a free theme? Improve it with copy/paste code snippets clicking here.
◦ Looking to hire an experienced developer? Same day response: ezfycode@gmail.com.
0 Likes