• We have our youtube video using a lightbox and it was working fine. But now when you go to play the video in the lightbox, you can hear the video on the page too. This was not doing it when first set up.
    We are also using Lazy Load for Videos.
    Since both recently updated I was wondering if you might have a clue what I can do to fix it. I’m going to post on the other plugin page too.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Starhorsepax2

    (@starhorsepax2)

    Added note: we have momentarily used the code snippet found here https://firelightwp.com/wordpress-lightbox-docs/troubleshooting-easy-fancybox/
    to disable the lightbox just for those pages. But we would really like it working if possible.

    Plugin Author FirelightWP

    (@firelightwp)

    Hi!

    Thanks for your note.

    If the video is playing on the page and in the lightbox, presumably that means the full video is embedded on the page? If so, I’d normally expect it to play on the page rather than open in a lightbox. Given that I’m curious how you have it set up.

    Can you link to the page with the issue? It might be useful to re-enable the lightbox on that page so I can see the issue. Soon as I do, I’ll post here and you can turn it off again.

    One other thing that would be helpful to check: can you duplicate this issue using our plugin alone? Or does it only happen in combination with the Lazy Load plugin? That will help us know if the issue is specifically our plugin, or if it is a plugin conflict (which seems more likely given the description).

    Thanks.

    Thread Starter Starhorsepax2

    (@starhorsepax2)

    Here is a duplicate of one of the pages. Link
    I can tell you the lazy load plugin puts a thumbnail on the page (drawn from Youtube) so the page doesn’t try and mass load all those vids at once. There are a lot of videos and it takes forever.

    Plugin Author FirelightWP

    (@firelightwp)

    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.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘doubled video play when using lightbox’ is closed to new replies.