Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to stop/pause video when modal (where the video is located) is closed? #465

Open
4 tasks done
avpuchkova opened this issue Jul 16, 2024 · 0 comments
Open
4 tasks done

Comments

@avpuchkova
Copy link

avpuchkova commented Jul 16, 2024

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:

					<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();
				});

System Info

Nuxt 3, Vue 3

Used Package Manager

npm

Validations

  • Read the the documentation in detail.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
  • The provided reproduction is a minimal reproducible example of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant