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

Uncaught (in promise) DOMException: The play() request was interrupted by a new load request #175

Open
pete-mcwilliams opened this issue Oct 4, 2023 · 0 comments

Comments

@pete-mcwilliams
Copy link

_video.play(); should listen for promise result and handle errors.

I am trying to handle the situation where a user cancels the webcam component before the webcam is properly initialised, without handling this the camera can become stuck on.

I'm waiting on the this.cameraSwitched.next command checking if the user has navigated away from my component and then triggering the webcam destroy through state and *ngIf... I wonder if the library can be changed to notify the listeners that it has been initialised and can be closed, perhaps on the play resolve. the call to play should also handle the reject of the promise.

Is the library still supported?

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