zxing-js / browser

ZXing for JS's browser layer with decoding implementations for browser.
MIT License
222 stars 43 forks source link

controls.stop() DOMException: The associated Track is in an invalid state #67

Open NicoP-S opened 3 years ago

NicoP-S commented 3 years ago

I get this DOMException: The associated Track is in an invalid state in chrome on mobile devices.

Using the BrowserMutliFormatReader and call the function decodeFromDevice the error occures after calling controls.stop() After this the camera is still running and the scanning also

Maybe it is something similar to #53

Fix: scanner controls method .stop() generating exception due to scope issues.

image

myasul commented 1 year ago

Any updates on this? We are experiencing DOMException as well due to controls.stop() not being awaitable.

image