Easy FancyBox
[resolved] how to stop video playing once close fancybox? (3 posts)

  1. Onyx Lee
    Posted 3 years ago #

    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"]
    <a href="#fancyboxID-1" class="fancybox">Read my inline content</a>

    how to destruct this div you exit the fancybox?

    Thank you very much!


  2. Onyx Lee
    Posted 3 years ago #

    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.

  3. RavanH
    Plugin Author

    Posted 3 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic