Added method to stop YouTube, Vimeo, and HTML5 videos from playing when modal is closed.