ngx-webcam icon indicating copy to clipboard operation
ngx-webcam copied to clipboard

DOMException: The play() request was interrupted

Open therockerline opened this issue 6 years ago • 5 comments

DOMException: The play() request was interrupted possible fix: https://developers.google.com/web/updates/2017/06/play-request-was-interrupted

therockerline avatar Jul 31 '19 13:07 therockerline

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

basst314 avatar Jul 31 '19 15:07 basst314

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.

jonnysamps avatar Sep 24 '20 19:09 jonnysamps

Hi @therockerline, could you please verify if the issue still occurs with the latest version of this library (0.4.1)? Thanks

basst314 avatar Dec 03 '21 17:12 basst314

Hi @basst314, I can confirm this is still happening sometimes in 0.4.1

sebalr avatar Aug 10 '22 14:08 sebalr