title: Detect end of YouTube video in Magnific Popup
body: <p>How can one detect the end of a YouTube video playing inside of a magnific popup? The only events provided are for open and close the popup. Can the iframe or js api from YouTube be used somehow to accomplish this using onPlayerStateChange === 0?</p>
  
  <p>I need to trigger javascript to display a continue button on video end so the user can continue to the next segment.</p>