• Is it possible to make a video friendly pop-up? I tried to make it with a youtube embed but if the user closes the window the video will keep playing in the background. (also the embed seems to cause problems calculating the width and height of pop-up window)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lovro Hrust

    (@lovor)

    Hi, at this moment this is out of the scope of this project, but I might reconsider it in a near future. The reason for that is because in order to do that, I would have to modify output of core/embed block, youtube variation to also include enablejsapi in URL query parameter to enable javascript to control youtube video. And also, a javascript code should be added which would stop the video on popup closing. This would solve stop playing for youtube video, but not for other embeds, of which each has to be treated separately. If you are proficient in coding, you can do this by yourself, there is a custom event ‘makeiteasy/closeModal’ which fires on popup element when it is closed.

    Thread Starter Squidy McSquid

    (@x1-bot)

    Ah okay, understood! Thanks for reply

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Video popups’ is closed to new replies.