Implement Video in modal how to trigger when modal close

I have added a video in modal while i click on close icon modal closed but video continue playing can you help me to trigger action when modal is closed ?
there is any function to trigger when modal is closed ?

Hi @krishan.kaushik – Videos within a modal aren’t acted upon when the modal closes. There is a Video Zoom stack within the Thunder Pack of addons that does this exact thing though. It is a modal lightbox for video embeds.

Thunder Pack: Thunder Pack of addons for Foundry

Sample & Documentation: Video Zoom Documentation