Estimated reading time: 0 minutes, 21 seconds
This is demonstration of how you can listen to event generates by youtube video player using iframe and control the actions. This code can also be used for other purposes beside showing and hiding custom box.
Youtube IFRAME Event Listener
Here is full documentation of Youtube API: