title: Is there any way to close Magnific when a Vimeo video has finished playing?
body: <p>Hoping you can help me. I have a Magnific iframe popup that plays a Vimeo video. However, once it is finished, I'd like to automatically close the popup. Is this even possible via this plugin?</p>
  
  <p>My current (working code):</p>
  
  <pre><code>$vimeo.magnificPopup({
  
      closeBtnInside: false,
      showCloseBtn: false,
      disableOn: 0,
      type: 'iframe',
      mainClass: 'mfp-fade',
      removalDelay: 0,
      preloader: true,
      fixedContentPos: false,
      callbacks: {
  
          beforeOpen: function() {
              cache.$main.addClass('playing');
          },
  
          open: function() {
                  $(this.currItem.el).closest('.project__item').toggleClass('playing');
          },
  
          close: function() {
              $('.project__item').removeClass('playing');
          },
  
          afterClose: function() {
              cache.$main.removeClass('playing');
          }
  
      }
  
  });
  </code></pre>
  
  <p>I have searched the web and the official Magnific API documentation to no success.</p>
  
  <p>Any help or a nod in the right direction appreciated.</p>
  
  <p>Many thanks,
  Mikey.</p>