-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Camera API - Cannot read property 'enumerateDevices' of undefined #1577
Comments
In which device? OS version? Browser version? |
Device: mobile. Don't have a webcam to try on PC |
I get this same error on MacOS on:
Out of interest, perhaps this might be related to insecure origin request?
|
Can confirm that it works when hosting on secure https... So possibly a security issue... |
I've sent a PR to PWA elements to return an error If that is merged, then Capacitor Camera plugin will have to be updated to detect the error and reject the getPicture promise with more information. But the problem here is what Andrew said, getUserMedia only works when served from https. |
@jcesarmobile if I use the back camera it looks inverted from my phone, is this normal? You can check in the "aaaa" button @ https://ulisesceca.com |
there is an issue open ionic-team/pwa-elements#11 |
Hello,
I am getting this error when trying to reproduce the same code as from the docs:
This is when running in web from a mobile.
The text was updated successfully, but these errors were encountered: