ngx-webcam
ngx-webcam copied to clipboard
DOMException: The play() request was interrupted
DOMException: The play() request was interrupted possible fix: https://developers.google.com/web/updates/2017/06/play-request-was-interrupted
Hi @therockerline,
Thanks for raising this. Can you provide some example code that reproduces the error? Can you also give some more info about what you‘re doing that‘s causing the error? What‘s the impact if the error occures?
Thanks
Hi
I get the same error when i call this.nextWebcam.next(deviceId) in Xiaomi redmi note 5: Uncaught (in promise) DOMException: The play() request was interrupted by a new load request. https://goo.gl/LdLk22 Please fix this error.
I get this same issue when switching between pages that would play different cameras. I'd be happy to submit a PR on this but from the looks of the other PRs they aren't getting much attention. Let me know if you want help on this issue.
It appears that the component doesn't clean up properly when being destroyed. My webcam remains "on" after the component gets destroyed.
Hi @therockerline, could you please verify if the issue still occurs with the latest version of this library (0.4.1)? Thanks
Hi @basst314, I can confirm this is still happening sometimes in 0.4.1