FROM CACHE - en_header

Video Not loading

Pathway_Sucess
New Member
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 159 (159)
Visely-Team
Shopify Partner
1843 210 467

Hey there,

 

The reasons is a javascript error that happens during video loading. Make a copy of your currently live theme, locate your theme.js.liquid file and find a snippet similar to this one:

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

adjust it to read:

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

notice the exchange of .h. with .a.

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
MaximS
Excursionist
42 0 9

This fix isn't working, I am unable to save the file after making the change.  See attached.  Any thoughts?  

 

Screenshot 2019-05-10 at 10.34.49.png

marciamax
New Member
3 0 0

This worked like a charm! Thank you so much! 

digitalmirrors
New Member
2 0 1

I'm having the same problem.

 

I checked theme.js, but it already has
return videos[evt.target.a.id];
 Any idea on how to fix this?
Ababusa
Excursionist
21 0 7

I check the js file and cant even find

return videos[evt.target.a.id];

Video not loading up for me 

Visely-Team
Shopify Partner
1843 210 467

@Ababusa @digitalmirrors share your store's URL so I can take a look, it might not be related.

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
Ababusa
Excursionist
21 0 7

I'm terribly sorry, I should have returned once I figured out my fix, kind of simple and actually embarrassed I didn't pick up on it

For anyone else having this issue please do firstly check the video you're using is at least accessible by using a shareable link

Rookie mistake I know

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 ?

Agail
Tourist
6 0 3

@Visely-Team wrote:

@Ababusa @digitalmirrors share your store's URL so I can take a look, it might not be related.


Can you take a look at mine too ?

Visely-Team
Shopify Partner
1843 210 467

@Agail please share a 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
Agail
Tourist
6 0 3

Hi Visley,

 

This is my link : agail-air.myshopify.com

Please help

Agail
Tourist
6 0 3

@Visely-Team wrote:

@Agail please share a preview URL.


Hi Visley 

 

The following is the preview link

 

https://2dqybtl1wm4rzsij-36715790381.shopifypreview.com

EXLNCE
New Member
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

Visely-Team
Shopify Partner
1843 210 467

@Agail 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.l.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
Visely-Team
Shopify Partner
1843 210 467

@EXLNCE please see my reply to @Agail  above. You should do the same.

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
Agail
Tourist
6 0 3

Thank you very much, works like a charm now

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 467

@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
EXLNCE
New Member
2 0 0

It works now! Thanks!