Video Modal UsageCustom javascript is needed to play the video when the modal opens and pause the video the modal closes.Demo
Custom Javascript<script>
// Toggle the video state based on modal visibility
const modal = document.querySelector('#js-modal');
const video = document.querySelector('#js-modal-video');
modal.addEventListener('modal:show', function() {
video.play();
});
modal.addEventListener('modal:hide', function() {
video.pause();
});
</script>