Skip to content
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

Open
EAWF opened this issue Aug 8, 2020 · 4 comments
Open

Comments

@EAWF
Copy link

EAWF commented Aug 8, 2020

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

@avisha-sejal-nandini
Copy link

I had the same issue . did that get resolved?

@helsner
Copy link

helsner commented Apr 16, 2021

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..
The whole thing needs a secure connection - eventually the issue is the local certificate or something in that directory of issue

@EAWF EAWF closed this as completed Oct 16, 2021
@EAWF EAWF reopened this Oct 16, 2021
@jssprz
Copy link

jssprz commented Nov 23, 2021

I had the same issue.

@CornFlakesKun
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants