Open avpuchkova opened 3 months ago
Is it possible to stop/pause video when modal (where the video is located) is closed?
Looks like pause() methid does not work/
I tried to do it:
<video-player src="src/video" controls :autoplay="false" :loop="true" :volume="0.6" :id="`frame`" /> let myModal = document.getElementById(`modal`); let myFrame = document.getElementById(`frame`); myModal.addEventListener('hidden.bs.modal', () => { myFrame.pause(); });
Nuxt 3, Vue 3
npm
Describe the bug
Is it possible to stop/pause video when modal (where the video is located) is closed?
Looks like pause() methid does not work/
Reproduction
I tried to do it:
System Info
Used Package Manager
npm
Validations