question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Camera API - Cannot read property 'enumerateDevices' of undefined

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, May 29, 2019
0reactions
UlisesCecacommented, May 29, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found