FV Player uses the fancyBox 3 library for lightbox.
Unlike Fancybox 5 it has the free GPLv3 license, but it’s now no longer supported by the developer, so you have to find the documentation here.
Here’s how to interact with the lightbox events:
jQuery(document).on('afterShow.fb', function( e, instance, slide ) {
console.log('afterShow');
});
The events are:
beforeLoad: Before the content of a slide is being loadedafterLoad: When the content of a slide is done loadingbeforeShow: Before open animation startsafterShow: When content is done loading and animatingbeforeClose: Before the instance attempts to close. Return false to cancel the close.afterClose: After instance has been closedonInit: When instance has been initializedonActivate: When instance is brought to frontonDeactivate: When other instance has been activated