• Resolved geco06

    (@geco06)


    Hi

    I try to make the youtube autoplay efficient but either it triggers before the popup or it does not trigger.
    Somebody’s help ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @geco06 – This is because their video embed player loads on page load, not when the popup actually opens. That is why we built our Videos extension.

    That said there is a way via some custom in our docs: https://docs.wppopupmaker.com/article/86-start-video-when-the-popup-opens

    Hope that helps.

    Thread Starter geco06

    (@geco06)

    I’m using Jupiter Theme, and i add this code:

    jQuery(‘#pum-123’)
    .on(‘pumBeforeOpen’, function () {
    var $iframe = jQuery(‘iframe’, jQuery(this)),
    src = $iframe.prop(‘src’);
    $iframe.prop(‘src’, ”).prop(‘src’, src + ‘?autoplay=1’);
    });

    as a custom JS code.

    But there is no effect on my youtube video popup. have you got an idea ?

    look at here:
    https://www.domaine-fritz.fr/testpopup/

    • This reply was modified 7 years ago by geco06.
    Thread Starter geco06

    (@geco06)

    Please, could you have a look?

    Plugin Author Daniel Iser

    (@danieliser)

    @geco06 – If I’m not mistaken you joined our Facebook group and we worked this out already.

    If not you likely need to update pum-123 (123) to match your popups ID #.

    Hope that helps.

    Thread Starter geco06

    (@geco06)

    I was thinking i understood what you said… But i guess i’m wrong,
    My popup CSS Classes is popmake-2917
    so I tried :
    jQuery(‘#pum-2917’) …
    But it still doesn’t work !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Autoplay in a Youtube video popup’ is closed to new replies.