BlinkID / blinkid-in-browser

BlinkID In-browser SDK for WebAssembly-enabled browsers.
https://microblink.com/blinkid
59 stars 30 forks source link

Uncaught (in promise): Error: The play() request was interrupted or prevented by browser security rules #47

Open sveres opened 3 years ago

sveres commented 3 years ago

Hi, After enabling barcode reading with for camera, we started to get the following error: Uncaught (in promise): Error: The play() request was interrupted or prevented by browser security rules

I suspect part of the problem is coming from not catching the error of calling .play() https://github.com/BlinkID/blinkid-in-browser/blob/6b2af6dcaba91006de70b7ec7a8b2905e987fa9e/src/MicroblinkSDK/VideoRecognizer.ts#L337

Chlebamaticon commented 2 years ago

Could we expect option to avoid triggering "play" via sdk?