Created
July 20, 2022 10:18
-
-
Save wplit/dd8a37c97d3d2eb585fa104e6267cc49 to your computer and use it in GitHub Desktop.
force video to pause when lightbox closed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).on('beforeClose.fb', function( e, instance, slide ) { | |
slide.$slide.find("vime-player")[0].pause(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment