I am using fancybox to display a video using mediaelement.js My client wants fancybox to automatically close after the video completes. I have the following code from mediaelement.js with a listener event for the end of the video here
I am just not sure what to put in that function to close the fancybox window at the end of the video playing. I am a bit of a novice when it comes to javascript. Your assistance is greatly appreciated :-)