• I was just wondering if this works with lightbox, ie Easy Fancybox. It was definitely working before because I used it. But the last update (of which plugin I am not sure) seems to have caused an issue. The youtube video plays in the pop up when I click the thumbnail controls but it also plays beneath it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author kevinweber

    (@kevinweber)

    Hi @starhorsepax2, Lazy Load for Videos wasn’t updated for a bit, so the issue should be caused by the update of some other plugin. Do you have a link to a page where the issue can be reproduced?

    Thread Starter Starhorsepax2

    (@starhorsepax2)

    I saw this a bit late. But here is a link to a duplicate test page. Interestingly, if I refresh the page the issue goes away. Easy Fancybox is also looking at it but doesn’t think the problem is them. I kind of get the notion the javascript maybe is triggered twice. Once when the thumbnail is clicked and once when the lightbox loads. Is there a setting I am missing maybe or a code snippet (I have a feeling there is something, it certainly reminds me of one.)

    Thank you for any advice.

    Plugin Author kevinweber

    (@kevinweber)

    The video is playing on the page as it was designed: If you click the preview image, it plays. The fancybox plugin seems to be attaching their click event handler to the same element and they both run simultaneously. It’s rather surprising that it seems to have worked for you in the past without the video playing automatically.

    The fancybox team might have changed how they trigger the opening of the lightbox. Just a guess: They could have attached their event listener to a different element and now when they call “event.stopPropagation” in their code, it’s too late to prevent the playback of the video. (I’m just guessing, I haven’t looked at their code.)

    Thread Starter Starhorsepax2

    (@starhorsepax2)

    It is possible it did it before and I didn’t notice I suppose. I believe I only clicked ‘play’ in the lightbox for a few seconds, and the audio didn’t start til after. It wasn’t til we let it run longer that the ‘echo’ of the video playing behind at the same time gave it away.
    Hm. I have a feeling there is a snippet somewhere to tell it not to double the trigger. It’s too bad as it looks great using both! Worse comes to worse we may just have to leave lightbox off for that page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘conflict with lightbox?’ is closed to new replies.