-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instascan.min.js:formatted:23167 Invalid asm.js: Type mismatch in assignment #253
Comments
I had the same issue . did that get resolved? |
Same here ATM - i'm working on a project which is getting an upgrade while the live version for this is working, but not the local one.. |
I had the same issue. |
Just change the protocol to https:// rather than HTTP: and it will work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Platform: Win7-64, Chrome: Version 84.0.4147.105 (Official Build) (64-bit)
Instascan min source: https://rawgit.com/schmich/instascan-builds/master/instascan.min.js
When using:
<title>Instascan</title> <script type="text/javascript" src="instascan.min.js"></script> <script type="text/javascript"> let scanner = new Instascan.Scanner({ video: document.getElementById('preview') }); scanner.addListener('scan', function (content) { console.log(content); }); Instascan.Camera.getCameras().then(function (cameras) { if (cameras.length > 0) { scanner.start(cameras[0]); } else { console.error('No cameras found.'); } }).catch(function (e) { console.error(e); }); </script>Console Log:
instascan.min.js:formatted:23167 Invalid asm.js: Type mismatch in assignment
instascan.min.js:formatted:15507 Uncaught (in promise) Error: Cannot access video stream (OverconstrainedError).
at new i (instascan.min.js:formatted:15507)
at Function. (instascan.min.js:formatted:15701)
at n (instascan.min.js:formatted:7209)
at Generator._invoke (instascan.min.js:formatted:7289)
at Generator.e. [as throw] (instascan.min.js:formatted:7224)
at n (instascan.min.js:formatted:7209)
at r (instascan.min.js:formatted:7230)
at instascan.min.js:formatted:7237
The text was updated successfully, but these errors were encountered: