Video Not loading

Pathway_Sucess
New Member
3 0 1

 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/

0 Likes
Visely-Team
Shopify Partner
1837 210 420

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
40 0 6

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

0 Likes
marciamax
New Member
1 0 0

This worked like a charm! Thank you so much! 

0 Likes
digitalmirrors
New Member
2 0 0

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

I check the js file and cant even find

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

Video not loading up for me 

0 Likes
Visely-Team
Shopify Partner
1837 210 420

@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 5

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

0 Likes
Agail
New Member
6 0 0

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

0 Likes
Agail
New Member
6 0 0

@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 ?

0 Likes