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

MediaDeviceInfo is not defined #56

Open
muzeyr opened this issue Oct 14, 2020 · 3 comments
Open

MediaDeviceInfo is not defined #56

muzeyr opened this issue Oct 14, 2020 · 3 comments

Comments

@muzeyr
Copy link

muzeyr commented Oct 14, 2020

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

@AckerApple
Copy link
Owner

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

@muzeyr
Copy link
Author

muzeyr commented Oct 16, 2020

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

@AckerApple
Copy link
Owner

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

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

2 participants