ack-angular-webcam icon indicating copy to clipboard operation
ack-angular-webcam copied to clipboard

MediaDeviceInfo is not defined

Open muzeyr opened this issue 4 years ago • 3 comments

It works fine when I try it on local computer, When I move prod system I get the following error.

Uncaught ReferenceError: MediaDeviceInfo is not defined at vendor-es2015.js:128087 at Object../node_modules/ack-angular-webcam/webcam.component.js (vendor-es2015.js:128138) at webpack_require (runtime-es2015.js:85) at Object../node_modules/ack-angular-webcam/index.js (vendor-es2015.js:127527) at webpack_require (runtime-es2015.js:85) at Module../src/app/app.module.ts (main-es2015.js:207) at webpack_require (runtime-es2015.js:85) at Module../src/main.ts (main-es2015.js:927) at webpack_require (runtime-es2015.js:85) at Object.0 (main-es2015.js:948)

Screenshot at Oct 14 08-44-39

muzeyr avatar Oct 14 '20 05:10 muzeyr

You must be on https or localhost. It’s a web browser security restriction

AckerApple avatar Oct 14 '20 12:10 AckerApple

You must be on https or localhost. It’s a web browser security restriction

There is no SSL certificate on the host I use, Is there any other way to use it

muzeyr avatar Oct 16 '20 18:10 muzeyr

You can google till the cows come home. It comes down to: https or localhost.

It’s a security thing. A great read. Look it up or just now: https or localhost

If you need it to work with just one computer you can jump through hoops to create a self assigned certificate and then inject that into the machine(s) you want to use.

Telling you, its how browsers work you cannot get around this

AckerApple avatar Oct 16 '20 19:10 AckerApple