Camera API - Cannot read property 'enumerateDevices' of undefined
See original GitHub issueHello,
I am getting this error when trying to reproduce the same code as from the docs:
TypeError: Cannot read property 'enumerateDevices' of undefined
at n.queryDevices (p-dp4kxc5o.entry.js:1)
at n.componentDidLoad (p-dp4kxc5o.entry.js:1)
at V (p-7a741ef8.js:1)
at Z (p-7a741ef8.js:1)
at Y (p-7a741ef8.js:1)
at Array.<anonymous> (p-7a741ef8.js:1)
at v (p-7a741ef8.js:1)
at g (p-7a741ef8.js:1)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
This is when running in web from a mobile.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Unable to get property 'enumerateDevices' of undefined or ...
According to mediaDevices.enumerateDevices method api. This method doesn't support IE. Browser Compatibility for This method are:.
Read more >Developers - Cannot read property 'enumerateDevices' of undefined -
index.js:1 TypeError: Cannot read property 'enumerateDevices' of undefined at Function.getCameras (camera.js:44) at Ordelivery.
Read more >MediaDevices.enumerateDevices() - Web APIs | MDN
The MediaDevices method enumerateDevices() requests a list of the available media input and output devices, such as microphones, cameras, headsets, ...
Read more >Media Capture and Streams - W3C
This document defines a set of JavaScript APIs that allow local media, ... describes the use of microphone and camera type sources only, ......
Read more >What are the common error messages to expect in Web ...
After integrating the Agora Web SDK into your web app, you can debug your code using the console log. ... Cannot read property...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
there is an issue open https://github.com/ionic-team/pwa-elements/issues/11
@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