I m using jQuery tools for an overlay. Inside the overlay I have an HTML5 video. However, when I close the overlay, the video keeps playing. Any idea how I might get the video to stop when I close the overlay? Here s the code I have:
$("img[rel]").overlay({ onClose: function() { <stop the video somehow> }, mask: { color: #000 , opacity: 0.7 }});
I tried using
$( video ).pause();
But this paused the overlay as well.