when we play youtube videos,fancy box generates an iframe in the staged area as follows:
<iframe id="fancybox-frame1730290693734" name="fancybox-frame1730290693734" class="fancybox-iframe" allowfullscreen="" allow="autoplay; fullscreen" src="//www.youtube-nocookie.com/embed/oG-RuUA0CJA?autoplay=1&autohide=1&fs=1&rel=0&hd=1&wmode=transparent&enablejsapi=1&html5=1" scrolling="no" title="''I had a dream...'' Convert Muslim Baruska Evs #revertmuslim #shorts"></iframe>
But I do need to detect the video on pause, on stopped, on play youtube API events. the "enablejsapi" may make it happen I guess. but i could not see any sample code to make this happen with fancy. can you point me to some demo of someone who showcased it if you know anyone?