Thank you for the fix Damian! Any chance this will be implemented to the plugin itself in the future?
@bortnikovarkadiy you can follow the steps, mostly explained in youtube.php:
1- Put script.js and youtube.php files in your WordPress “plugins” folder.
2- Go to wp-admin/plugins and enable the “Popups plugin Youtube fix”
3- In script.js file, replace ‘ID_POPUP’ with the id of your popup (do not include “spu-“, just write the numbers)
4- Edit your iframe by wrapping it in a <div id=”popupVid”>
5- Add ?enablejsapi=1 at the end of your youtube embed code.
After steps 4 and 5, your iframe code should look similar to this:
<div id="popupVid">
<iframe width="500" height="315" src="https://www.youtube.com/embed/T39hYJAwR40?enablejsapi=1" frameborder="0" allowfullscreen></iframe>
</div>