Why isn't my video playing on the debut theme homepage?

Pathway_Sucess
Visitor
3 0 2

 I'm trying to insert this video into the homepage of the debut theme.The video is forever loading and the play button doesn't work. How can I fix this?

 

https://www.youtube.com/watch?v=p7DjwxFcUdA

 

Heres the link to my store:

https://simplywooden.myshopify.com/

Replies 161 (161)
mikeevans1800
New Member
5 0 0

Hey, how do I DM you?  Is this a private message?

Mike

Visely-Team
Shopify Partner
1843 210 488

@mikeevans1800 yes, or here if you are feeling comfortable sharing it.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
mikeevans1800
New Member
5 0 0

Hi Visley, Can you please help me?  I need to go live with the site October 1st at noon.  HELP!!! PLEASE!

 

Mike

Visely-Team
Shopify Partner
1843 210 488

@mikeevans1800 sorry, had a look and it's hard to identify the issue due to the changes you or your team applied trying to fix the original issue. Is there a way you can rollback the changes you applied to the theme.js?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
mikeevans1800
New Member
5 0 0

So I just tried to do that, but it only lets me go back to the last save, not previous ones.  I changed it a few times trying different stuff, and i am not a programmer so i probably screwed it up.  It wont let me change it back to a few days ago.  Any other thoughts?

mikeevans1800
New Member
5 0 0

Hey bud, i got it.  I started a new shopify page and copied the original code and entered it into my messed up one.  Its working now.

 

Thanks!

Visely-Team
Shopify Partner
1843 210 488

@mikeevans1800 great hearing you have figured it out!

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
justin92
Visitor
1 0 0

Hi Visely team ,  are you able to help me out? I tired your fix and it is not working 

Visely-Team
Shopify Partner
1843 210 488

@justin92 what's your store URL?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
evesbucket
Visitor
1 0 0

I have sat here for a hour, no lie. I am trying to insert a "snippet" ..video from aliexpress to my store. Now I downloaded it and i put it in the little slots where photos go and it shows up for me but when i view my store it doesnt show up. Now I tried inserting it with iframe and NOTHING is working for me. This will be a AWESOME help for my store to actually generate revenue. Please help me  my store is www.Evesbucket

<iframe id="localstorage-proxy-ifr-alibabadotcom2" src="//is.alicdn.com/js/6v/biz/common/store-proxy/store-proxy2.html?iframe_delete=true" style="display: none; visibility: hidden;" data-spm-anchor-id="a2g0o.detail.0.i6.24be70faC5WqS7" data-spm-act-id="a2g0o.detail.0.i6.24be70faC5WqS7"></iframe>  

I do not know if i should copy element...i have no clue as i am soo new. Please help if possible as this will be very useful with all of my products

phone number 386 307 9737 florida united states.. email thelogust@gmail.com or feel free to go into my store and upload a video on ANY product ....thank you

Agail
Tourist
6 0 3

My video Theme.js  has the same code you recommand, but my video still not working, what should I do ?

EXLNCE
Visitor
2 0 0

My code has the same: "return videos[evt.target.a.id];"

 

Would you be able to fix mine as well? My store url is www.exlnce.store

mariekedegoeij
Tourist
11 0 1

I have checked the code- and it is correct - but the videos are still not loading (they did load previously?)

 

can you help?

Visely-Team
Shopify Partner
1843 210 488

@mariekedegoeij what's your preview URL?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
mariekedegoeij
Tourist
11 0 1
It’s www.depridoeboek.nl - or what do you mean?

The auto play video slide is still not working - I took it off my page (and put a link to a seperate page with the videos there instead - but not ideal)

Can you still help? Best! Marieke
EmileS
Visitor
2 0 0

I'm going to hop on here, I'm going with a vimeo video that's password protected.  When I put in the password, instead of showing the video it shows "this event has no videos."  However when I refresh the page, the event shows up as desired.

 

Same thing works fine on a squarespace page.  My code natively has "a" so I tried the fix replacing the "a" with an "l" but to no effect.  

 

I'd love some help.

Visely-Team
Shopify Partner
1843 210 488

@EmileS  what's your store URL?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
EmileS
Visitor
2 0 0
https://www.theinstitute.am/pages/live-stream

video password is: connection
Visely-Team
Shopify Partner
1843 210 488

@EmileSthe issues you are seeing are not related to the issue reported under this thread. You might want to create a new post.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
Qdeals
Visitor
1 0 0

Visely I was following all the answers from everyone I did all of them  none of them work can you still help? Qdeals4U.com

Thank you

Visely-Team
Shopify Partner
1843 210 488

@Qdeals looks like you've got it sorted? The video on homepage loads for me with no issues.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
CVGS
Visitor
2 0 0

I am having an issue where a new video will not load and a previous video that used to work also will not load. I have checked the code in the theme.js and verified it to be consistent with the fix you mentioned previously. Is there anything else you can recommend I try?

 

Thank you!

Visely-Team
Shopify Partner
1843 210 488
The fixes I am helping with are very specific to the store and theme versions, so they might or might not work. Share your store URL so I can take a look and try getting a fix for you.
Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
Visely-Team
Shopify Partner
1843 210 488

@CVGS in your theme.js find the following snippet:

  function getVideoOptions(evt) {
    return videos[evt.target.a.id];
  }

and adjust it to read:

  function getVideoOptions(evt) {
    return videos[evt.target.f.id];
  }

 

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
CVGS
Visitor
2 0 0

You are fantastic, this fixed my issue! Thank you for your help!

prawnmania
Tourist
4 0 1

This worked for me thanks!


@Visely-Team wrote:

@CVGS in your theme.js find the following snippet:

  function getVideoOptions(evt) {
    return videos[evt.target.a.id];
  }

and adjust it to read:

  function getVideoOptions(evt) {
    return videos[evt.target.f.id];
  }

 


 

mobbgoodies
New Member
5 0 0

My video isn't loading,  I can't find the code previously mentioned in this thread.  My website is mobb-goodies.myshopify.com.  Any assistance you can offer is greatly appreciated. 

 

Thank you,

 Robin and Talitha

Visely-Team
Shopify Partner
1843 210 488

@Mikenike315 which video isn't loading for you? It looks OK to me on the homepage, there is one video under "WATCH OUR LATEST VIDEO". Were you referring to another page/video? Also there are no errors in the logs specific to the issue.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
Visely-Team
Shopify Partner
1843 210 488

@mobbgoodies which video isn't loading for you and on which page?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
mobbgoodies
New Member
5 0 0
Its the "What's Spinning Now" video on the home page. I just made it
visible.
mobbgoodies
New Member
5 0 0

Did you see the section to which I was referring?

Visely-Team
Shopify Partner
1843 210 488

@mobbgoodies yes I see it now; you have to adjust the following snippet in your theme.js.liquid:

  function getVideoOptions(evt) {
    return videos[evt.target.a.id];
  }

so it reads:

  function getVideoOptions(evt) {
    return videos[evt.target.f.id];
  }

A more universal solution would be to replace the whole block:

 function getVideoOptions(evt) {
    return videos[evt.target.a.id];
 }

with this block here:

 

  function getVideoOptions(evt) {
    var id = evt.target.getIframe().id;
    return videos[id];
  }
 

 

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
mobbgoodies
New Member
5 0 0
Thank you so much. That corrected the issue.
Chalk2TheHand
Visitor
1 0 0

Hi, Please could you help. My video on the homepage isn't loading. I have tried all the fixes and the universal one.

 

URL is https://chalk2thehand.co.uk/

 

Thank you!

coreyK
Visitor
2 0 0

Hi I've tried all the aforementioned fixes to get my video to work. I'm trying to embed a youtube video onto each of my product detail pages. 

Store URL: the-everplush-company.myshopify.com

 

can you help?

Visely-Team
Shopify Partner
1843 210 488

@coreyK can you share the URL to a product page with the video failing to load?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
coreyK
Visitor
2 0 0
Here’s an example:
https://everplush.com/collections/bath-wraps/products/everplush-bath-wrap.
The video is located underneath the add to cart button. Thanks!
Visely-Team
Shopify Partner
1843 210 488

@coreyK the Youtube URLs are not links to actual videos, so they wont work if you try use them as src for the <video> tag. Replace <video> tag with the following snippet and you should be good:

<iframe width="1280" height="720" src="https://www.youtube.com/embed/JphMrAC5l2A" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

 

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
mobbgoodies
New Member
5 0 0
The issue has been corrected. Thank you.
Mikenike315
Visitor
2 0 0
Hi! I actually figured it out. Thanks so much for the quick reply.
Nick211
Visitor
2 0 0

Hello Can you help me also. I've change the a. to l. but not working. 

 

This is my url. https://d-tops-engineering-supply.myshopify.com/

 

My video is not working. 

NikkiSedacca
Visitor
1 0 0

Hi there,

 

I have been reading in this feed to look for a solution for the video on my home page not loading. I would like to upload it as a background video. Let me know if you know what I should do! 

 

Here's the shop:

https://sedacca.com/

 

Thank you!!!

Visely-Team
Shopify Partner
1843 210 488

@NikkiSedacca this thread is specific to errors merchants are seeing with their previously working videos and solutions on how to get the functionality back. Please create a different post if you are looking for help on implementing this.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
FlyNovaBE
Tourist
3 0 0

Hello,

 

I have same issues with youtube video not playing.

I checked your advice and the coding is correct.

 

Can you please help me to unblock my youtube video?

Thank you.

 

flynovabe.myshopify.com

 

Kind regards,

J.B.

 

 

FlyNovaBE
Tourist
3 0 0

G.G. edit worked thank you amazing good help

cprtrakr
Visitor
3 0 0

I just sent you a request to look at mine and saw that someone use "g.g." in replace of "a"... it worked.  I am good.  Thank you

zachkag
Visitor
1 0 0

I am having the same issue and cannot find where to make that edit. Is someone able to help?

Visely-Team
Shopify Partner
1843 210 488

@zachkag please share your store URL.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
Zetuké
Tourist
10 0 2

Hi, I am having the same issue on my homepage, but I can't seem to find the liquid file of where I should put the code.

Would you mind having a look? https://www.zetuke.com/

Mikenike315
Visitor
2 0 0

Hi! 

My video is doing the same thing please let me know how I can fix it! 

 

My store URL www.fancyfarmskincare.com

 

Please let me know what I can do to make the video load better!

 

Thank you