I have a video that autoplays inside a modal. I need to be able to fire an even that pauses the video when the modal is closed, not just from the closeModal event, but also if the user clicks outside the modal and the modal autohides. Is there any way to do this?