• Hello, thanks for this amazing plugin!

    I have this code in my post, it works like a charm, but once you close the fancybox, it’s only hidden, so the video is still playing:

    <div style="display:none" class="fancybox-hidden"><div id="fancyboxID-1" style="width:640px;height:360px;">
    [jwplayer player="2" mediaid="1364"]
    </div></div>
    
    <a href="#fancyboxID-1" class="fancybox">Read my inline content</a>

    how to destruct this div you exit the fancybox?

    Thank you very much!

    http://wordpress.org/extend/plugins/easy-fancybox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Onyx Lee

    (@lek1)

    Ok, I think the inline content will start playing when the page is loaded. So I have to change it to an iframe so it will be loaded once clicked. and iframe will also be dismissed with everything inside it when you close the pop up window.

    It will be great if inline can do that too. That will save soooooo much work.

    Sadly, it cannot. Or I’d have to make it compatible with every player API out there… Firering a stop command on close in every ‘language’… If the player in question has an API at all.

    Iframe realy is the best way 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to stop video playing once close fancybox?’ is closed to new replies.