Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Cannot read property ‘capture’ of undefined – cordova plugin media capture

$
0
0

Simulating in the browser ???  If I understand what you're doing... you can't do that.  Plugins (usually) interact directly with Hardware... and in this case, definitely with the camera on the device.  The browser has no concept of your device camera.

Build the app and install on your device... and then give it a shot.

Also, properly written wrappers will always test to ensure PhoneGap/Cordovo is loaded and will issue an error and message if not.  Mine is just a test... so I didn't bother.  I'll add that in and re-post it so that you can see how it would then run in a browser.


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>