Support » Plugin: PopBox For Elementor » Videos in popups?

  • Resolved joeydav0117

    (@joeydav0117)


    When I embed a video in a popup, the audio continues playing even when the popup window is closed.

    Anyone know a fix for that?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • did you solve this?

    This is definitely important!
    I don’t have the time to do it myself, but it looks easy. I found three hints how to solve it:

    jQuery(“.modal-backdrop, #myModal .close, #myModal .btn”).live(“click”, function() {
    jQuery(“#myModal iframe”).attr(“src”, jQuery(“#myModal iframe”).attr(“src”));
    });

    Or this

    <script type=”text/javascript”>jQuery(“.modal-backdrop, #myModal .close”).live(“click”, function() { jQuery(“#myModal iframe”).attr(“src”, jQuery(“#myModal iframe”).attr(“src”)); }); jQuery(“.modal-backdrop, #myModal .btn”).live(“click”, function() { jQuery(“#myModal iframe”).attr(“src”, jQuery(“#myModal iframe”).attr(“src”)); });</script>

    With B3 it is this

    $(“#myModal”).on(‘hidden.bs.modal’, function (e) {
    $(“#myModal iframe”).attr(“src”, $(“#myModal iframe”).attr(“src”));
    });

    This must be added and changed to the js code of the plugin.

    Plugin Author NoreWP

    (@norewp)

    Thanks for reporting the issue @joeydav0117.

    @webskop Thank you for sharing the helper scripts – going to take a closer look at this to get a good resolution for all 🙂

    Plugin Author NoreWP

    (@norewp)

    This issue has now been fixed in the latest version.

    Hello! Regarding a similar issue, in the video options section I have no choice but to turn autoplay off because when I turn auto play on it plays the video on load when instead it should be played when the button is clicked. The weird thing about this is on the Elementor canvas, ‘I didn’t choose the ‘Popbox:on load’ option. Rather I chose the ‘popbox: on click’ option, but for whatever reason it still plays the video on load. is there a fix for this yet?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Videos in popups?’ is closed to new replies.