Replies: 2 comments
-
What do you mean by "had no luck"? Does it crash? errors shown?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It was a permission problem. It started working when I've added these entries in config.xml
Before I did this, the navigator.mediaDevices.getUserMedia was always returning 0 devices. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to get access to the camera using the navigator.mediaDevices.getUserMedia({video: true}) approach, but so far, I had no luck in Cordova. I was trying with cordova-plugin-media-capture & cordova-plugin-camera.
This approach works flawless in chrome though.
Is there a way to make it run in Cordova?
I am force to stick with this approach, as one of the 3rd party libraries my app is using, is using this method.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions