ngx-webcam
ngx-webcam copied to clipboard
Uncaught (in promise) DOMException: The play() request was interrupted by a new load request
_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?