0

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 :-)

4

1 回答 1

0
$.fancybox.close

或者如果在 iframe 中

parent.$.fancybox.close();
于 2012-08-02T06:52:49.997 回答