I can confirm I see the issue with the double playing.
Logically, what’s happening (I think):
1. The Lazy Load plugin provides the thumbnail.
2. The Lazy Load plugin has some JavaScript such that when you click a thumbnail, the video plays embedded on the page.
3. Our plugin has some JavaScript such that when you lick a thumbnail, the video opens in a thumbnail and then plays.
You can see the conflict between #2 and #3 above. The only way to prevent this is to stop #2 from happening.
Do you know if that is new behavior on the part of the Lazy Load plugin? Based on what you’re saying, I have to assume that before you had this issue, #3 was happening above, but #2 was not. #2 above is entirely the doing of the Lazy Load plugin. That’s not something our plugin is doing.
A related question: do you know if the Lazy Load plugin has (or has recently added) any settings to dictate what happens when you click a thumbnail? Ideally, you want it to NOT play the thumbnail on click. For example, instead of playing the thumbnail, if it just links to the youtube page, that would fix this issue I thinnk. The video wouldn’t play, but Easy Fancybox would ‘intercept’ the link and open the video in the lightbox.
If there is no setting for what to do when clicking a thumbnail, another way to stop #2 is to dequeue/remove/stop the Lazy Load JS that plays the file. I don’t know how they load their JS. If it’s a separate file that is enqueue, this could be done with a couple simple lines of PHP. It could also likely be done by writing some custom JS/PHP code. Digging into this kind of third party customization is unfortunately well beyond what we can do for plugin support on our side.
If you do reach out to the Lazy Load plugin team, what you want to ask them is: “Is there a way to stop the videos from playing when clicked? Either a setting, or a simple way via code?”
–
The only other question I can raise on our side is whether Easy Fancybox was doing something before to block the default behavior of the Lazy Load plugin. I don’t think that’s the case, and I’m not sure how we would have been doing that, and I don’t think we’ve changed anything recently that would affect something like that.
-
This reply was modified 6 months, 1 week ago by FirelightWP.