Vidzflow lightbox

Here you can see the example of Vidzflow usage in a Fancybox lightbox
library that will allow you to present a video with a click of a button.

Start video

Add following code to Before </body> tag section

<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js"></script>
<script>
      Fancybox.bind('[data-fancybox]', {
  on: {
    "*": (fancybox, eventName) => {
      console.log(`Fancybox eventName: ${eventName}`);
    },
    "done": (fancybox, eventName) => {
      var iframe = document.querySelector('#dialog-content iframe')
			iframe.contentWindow.postMessage("playerPlay", "*")
    },
    "close": (fancybox, eventName) => {
      var iframe = document.querySelector('#dialog-content iframe')
			iframe.contentWindow.postMessage("playerPause", "*")
    }
  },
});    
</script>

Inside <head> tag

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css" />